Q. What will be the output of the following JavaScript code?
Code:<script> const curr = new Date(); document.write(curr); </script>
β
Correct Answer: (D)
Tue Dec 21 2021 13:04:36 GMT+0530 (India Standard Time)
<script> const curr = new Date(); document.write(curr); </script>
You must be Logged in to update hint/solution