A while loop keeps running as long as the condition is true. Use when you don't know the iteration count in advance.
while
Challenge: Write countdown(n) that returns an array [n, n-1, ..., 1] using a while loop.
countdown(n)
[n, n-1, ..., 1]