A

Admin • 828.03K Points
Coach

Q. What will be the output of the following JavaScript code?

Code:
<script>
const curr = new Date();
document.write(curr);
</script>
  • (A) Tue Dec 21 2021 13:04:36 GMT+0530
  • (B) Tue Dec 21 2021 13:04:36 (India Standard Time)
  • (C) Tue Dec 21 2021 13:04:36::00::01 GMT+0530 (India Standard Time)
  • (D) Tue Dec 21 2021 13:04:36 GMT+0530 (India Standard Time)
  • Correct Answer - Option(D)
  • Views: 4
  • Filed under category JavaScript
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.