Exerpad
Exercise 6 · Chapter: For LoopsRequired+50 XP

Fix the Loop Variable

This program uses the wrong variable inside the loop. Fix it!

Expected output:

1
2
3
Need a hint?
3 available · costs 5 XP each
javascript
for (let i = 1; i <= 3; i++) {
console.log(x);
}
Output
Run your code to see the output here.