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)
πŸ’¬ Discuss
βœ… Correct Answer: (D) Tue Dec 21 2021 13:04:36 GMT+0530 (India Standard Time)

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
374
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
98%
Success Rate