Consider the following code snippet :
var c = counter(), d = counter();
c.count()
d.count()
c.reset()
c.count()
d.count()
The state stored in d is :
Answer : A
View More Related Question
1) What is the difference between the two lines given below ? !!(obj1 && obj2); (obj1 && obj2);
View Answer
2) Consider the following code snippet
o.m(x,y);
Which is an equivalent code for the above code snippet?
3) Which of the following is the correct code for invoking a function without this keyword at all, and also too determine whether the strict mode is in effect?
View Answer
4) If you have a function f and an object o, you can define a method named m of o with
5) Consider the following code snippet :
var string2Num=parseInt("123xyz");
The result for the above code snippet would be :