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 :
var c = counter(), d = counter();
c.count()
d.count()
c.reset()
c.count()
d.count()
A. 1
B. 0
C. Null
D. Undefined
Answer: Option A

Join The Discussion