ExamVeda
Login
Home
This question belongs to Javascript Array And Function
Array and Function
?

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 & Solution
Correct Answer: Option A
The state stored in d is 1 because d was not reset.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.