Exercise 2 · Chapter: For LoopsRequired+50 XP
Count by Twos
Print even numbers from 2 to 20, each on its own line.
2 4 6 8 10 12 14 16 18 20
Hint: Use i += 2 as the update step.
Need a hint?
3 available · costs 5 XP each
javascript
Output
Run your code to see the output here.