Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 711 Bytes

README.md

File metadata and controls

26 lines (18 loc) · 711 Bytes

Countdown exercise

Make a kitchen timer. Modify the countdown() function in countdown.js to take a number of seconds, then print each second counting down to zero.

countdown(10);

// should print

// 10...
// 9...
// 8...
// ...

Levels

  1. Use global variable to keep track of time
  2. Keep track of time without defining any global variables
  3. BONUS: don't define any new variables

Documentation