Hey there! I'm diving into the world of JavaScript and have a question that might be beginner level.
So, here's my code snippet:
<script>
var curdate = new Date();
document.write(curdate.setFullYear(1989, 07, 26));
</script>
Instead of displaying the date in a normal format, I'm getting a number like: 620154050573
. Even when I tried converting it to a string before displaying, it didn't change. Can someone help me understand why this is happening?
Thanks!