Q. Find the output of below for loop in Javascript

Code:
<script>
for(var i=0;i<5;i++)
{
    document.write(i++);
}
</script>
  • (A) 024
  • (B) 135
  • (C) 012345
  • (D) 01234
πŸ’¬ Discuss
βœ… Correct Answer: (A) 024

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
240
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
94%
Success Rate