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()
Dear candidates you will find MCQ questions of JavaScript here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question
var p = counter(), q = counter(); p.count() q.count() p.reset() p.count() q.count()
!!(object1 && object2); (object1 && object2);
var obj = new Object();
var string2Number=parseInt("456pqr");
var tensquared = (function(n) {return n*n;}(100));
var Total=eval("5*5+10");
opt.fun(p,q);