A

Admin • 828.03K Points
Coach

Q. Is it mandatory to put all three conditions in for loop? find the output of below Javascript code

Code:
<script>
for(var i=0;i++<5; )
{
document.write(i);
}
  • (A) 1234
  • (B) 01234
  • (C) 12345
  • (D) Compilation Error
  • 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.