Skip to content

RamdathDylan/js-lab-switch2-countdown-ttpr

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Colorful dice tumbling

--- languages: javascript, html, css tags: dom, timers, events, beginner, kids ---

🚀 Switch 2 Countdown – Coding Challenge

Nintendo’s Switch 2 drops at 12:01 AM → June 5 2025.
Starter code boots a bare timer—your job is to finish the logic and add launch-day flair.


Starter files

index.html // page shell +

styles.css // red theme (tweak as you like) script.js // countdown scaffold — TODOs inside assets/ // Switch-2 banner PNG + coin.wav (optional)

Open script.js to see the commented TODO steps.


Requirements

# Feature Pass criteria
1 Live countdown Timer updates every second (days : hrs : mins : secs).
2 Two-digit units 04 hrs → not 4 hrs  padStart() hint included.
3 Launch state At zero: text flips to “Switch 2 is out! 🎉” and page style changes (background, confetti, etc.).
4 Dynamic date Timer reads data-release on the countdown <div> (no hard-coding in JS).
5 (Stretch) Sound Play coin.wav once on launch.

Quick start

  1. Fork & clone this repo.
  2. Open index.html in your browser + script.js in your editor.
  3. Follow the numbered TODO comments—implement, save, refresh, repeat.
  4. Commit early, push when ready, and open a Pull Request.

Submission checklist

  • Countdown visible & accurate.
  • Units padded to two digits.
  • Launch message + style swap trigger.
  • No uncaught console errors.
  • Screenshot added to README.

Happy coding—set your alarms for midnight! 🌟

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 67.5%
  • CSS 20.2%
  • HTML 12.3%