A

Admin • 833K Points
Coach

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

Code:
var size=5;
var x=5;
var size=4;
for(var j=size;j>=0;j--)
{
console.log(x);
xx=x-2;
}
  • (A) 5321
  • (B) 5555
  • (C) 531-1-3
  • (D) 531
  • Correct Answer - Option(C)
  • Views: 29
  • 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.