πŸ“Š JavaScript
Q. In the following code, what value should the variable "a" contain?
Code:
var x =counter(), y = counter();  
x.count()  
y.count()  
x.reset()  
x.count()  
y.count()  
  • (A) Null
  • (B) 0
  • (C) 2
  • (D) Undefined
πŸ’¬ Discuss
βœ… Correct Answer: (C) 2

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
179
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Praveen Singh
Publisher
πŸ“ˆ
98%
Success Rate