🔥 0
0 XP
Lv.1 Beginner
FAQ
Log In
Home
JavaScript
Getting Started with JavaScript
While Loops
Countdown
1
2
3
4
5
6
7
8
9
10
Your task
Lesson: Repeating with While
Exercise 2 · Chapter: While Loops
Required
+50 XP
Countdown
Print a countdown from 10 to 1, then print
Blastoff!
10 9 8 7 6 5 4 3 2 1 Blastoff!
Need a hint?
3 available · costs 5 XP each
Reveal hint (-5 XP)
javascript
Reset
Run
Submit
9
1
Output
Run your code to see the output here.
Previous · Exercise
Count to Five
Exercise 2 of 10
Next · Exercise
Fix the Loop