A

Admin • 828.03K Points
Coach

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
  • Correct Answer - Option(C)
  • Views: 5
  • Filed under category JavaScript
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.