Exercise 3 · Chapter: While LoopsRequired+50 XP
Fix the Loop
This loop should print 1 to 3, but it runs forever! Fix it.
Expected output:
1 2 3
Need a hint?
3 available · costs 5 XP each
javascript
let i = 1;
while (i <= 3) {
console.log(i);
}
Output
Run your code to see the output here.