Explanation: The loop will break when i=3.
Your Result:
Edit the code above and click to see the result.
W3Schools.com
- Try it yourself