A
Q. Consider the following code snippet :
The state stored in q is :
Code:
var p = counter(), q = counter(); p.count() q.count() p.reset() p.count() q.count()
Here, you will find a collection of MCQ questions on JavaScript. Go through these questions to enhance your preparation for upcoming examinations and interviews.
To check the correct answer, simply click the View Answer button provided for each question.
Have your own questions to contribute? Click the button below to share your MCQs with others!
+ Add QuestionA
var p = counter(), q = counter(); p.count() q.count() p.reset() p.count() q.count()
A
!!(object1 && object2); (object1 && object2);
A
var obj = new Object();
A
A
A
var string2Number=parseInt("456pqr");
A
var tensquared = (function(n) {return n*n;}(100));
A
A
var Total=eval("5*5+10");
A
opt.fun(p,q);
If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.
Share Your MCQ