What is the code for getting the current time?
(a) now = new Date();
(b) var now = new Date();
(c) var now = Date();
(d) var now = new Date(current);
The question was posed to me by my college director while I was bunking the class.
This question is from Embedding JavaScript in HTML topic in portion Server-Side and Client-Side Scripting of JavaScript
Select the correct answer from above options
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)