Lift Off
JavaScript
10 pts
Lift Off
Write a countdown with a while loop. Start from count = 5, print the number, then subtract 1, as long as count is greater than 0. After the loop, print Lift off!:
5 4 3 2 1 Lift off!
Checklist
- Count down with a
whileloop. - Use only two
console.log()lines. - Print the countdown and
Lift off!.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
