Examveda
Examveda

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

B. 0

C. Null

D. Undefined

Answer: Option A

Solution(By Examveda Team)

The state stored in d is 1 because d was not reset.

This Question Belongs to Javascript >> Array And Function

Join The Discussion

Related Questions on Array and Function