Q. Consider the following code snippet :
The state stored in q is :
Code:
The state stored in q is :
var p = counter(), q = counter(); p.count() q.count() p.reset() p.count() q.count()
β
Correct Answer: (D)
1