πŸ“Š JavaScript
Q. what will be the output of below code?
Code:
const event = new Date(Date.UTC(2012, 11, 20, 3, 0, 0));
console.log (event.toLocaleString('en-IN', { timeZone: 'UTC' }));
  • (A) 2012/12/20, 3:00:00 am
  • (B) 20/12/2012, 3:00:00 am
  • (C) 12/20/2012, 3:00:00
  • (D) 20/12/2012, 3:00:00
πŸ’¬ Discuss
βœ… Correct Answer: (B) 20/12/2012, 3:00:00 am

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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