πŸ“Š JavaScript
Q. Consider the following code snippet : The state stored in d is :
Code:
var c = counter(), d = counter(); 
c.count()
d.count() 
c.reset() 
c.count() 
d.count()
  • (A) 1
  • (B) 0
  • (C) Null
  • (D) Undefined
πŸ’¬ Discuss
βœ… Correct Answer: (A) 1

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
163
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Indresh Gehalot
Publisher
πŸ“ˆ
88%
Success Rate