Skip to content
 
 

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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(3);

// should print

// 3...
// 2...
// 1...
// 0

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

About

countdown exercise

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages