Q27
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 :
A.
1
AnswerB.
0
C.
Null
D.
Undefined
Answer: Option A
Solution
Answer: Option A
Solution:
The state stored in d is 1 because d was not reset.