Which of the following is incorrect way of instantiating a date?
Correct Answer: new Date(seconds)
Explanation:
Note: This Question is unanswered, help us to find answer for this one
JavaScript Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More JavaScript MCQ Questions
How would you change the date to one week later assuming myDate is a date object?
Event that fires when the form element textarea loses the focus?
What's the output? var x=3; x=x<<3;
What will be the value of 'mystring' variable when the following code is executed? var fruits = ['Banana', 'Orange', 'Apple', 'Mango']; fruits.pop(); var mystring = fruits.join(' * ');
Which is not a mouse event?
Which can have a different value depending on who invoked the function accessing it?
Output when the following code is executed? console.log(false == '0', false === '0')
function locald() { var d = 6; console.log('d inside function: ' + d); } locald(); console.log('d outside function: ' + d); What will be value of d in or out of the function;
What's the output? for (var i = 0; i < 5; i++) { (function(x) { setTimeout(function() { console.log(x); }, x * 1000 ); })(i); }
Between JavaScript and an ASP script, which is faster
JavaScript MCQs | Topic-wise