Exercise 3 · Chapter: For LoopsRequired+50 XP
Fix the Range
This program should print 1 to 5, but it only prints 1 to 4. Fix it!
Expected output:
1 2 3 4 5
Need a hint?
3 available · costs 5 XP each
javascript
for (let i = 1; i < 5; i++) {
console.log(i);
}
Output
Run your code to see the output here.