I

Indresh Gehalot • 10.11K Points
Tutor II

Q. Which of the following options would be the correct output for the given JavaScript code?

Code:
var x=0;
for(x;x<10;x++);
console.log(x);
  • (A) 10
  • (B) 4
  • (C) 5
  • (D) Error
  • Correct Answer - Option(A)
  • Views: 125
  • Filed under category JavaScript

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.


Question analytics