challenge: create a countdown to new years day | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

challenge: create a countdown to new years day

in this challenge you will be using code to make a timer that displays how long till new years day in: days/hours/minutes (here is a timer i got off the internet https://code.sololearn.com/WVgyxMziCPq3/#html) all languages welcome btw

27th Dec 2017, 8:30 PM
Alex
Alex - avatar
6 Answers
27th Dec 2017, 8:42 PM
Roabs
Roabs - avatar
+ 5
@Alex: your countdown doesn't display the correct value ^^ Anyway, mine is running from about 10 months: https://code.sololearn.com/Wt7K7MGvgG1I/?ref=app
28th Dec 2017, 12:33 AM
visph
visph - avatar
28th Dec 2017, 10:59 PM
Sebastian Keßler
Sebastian Keßler - avatar
+ 3
29th Dec 2017, 12:42 PM
Tarantino
Tarantino - avatar
+ 2
@visph: what do i need to do to fix it?
28th Dec 2017, 8:31 PM
Alex
Alex - avatar
+ 2
@Alex: //var deadline = new Date("dec 31, 2017 12:0:0").getTime(); var deadline = new Date("jan 01, 2018 0:0:0").getTime(); Or at least: var deadline = new Date("dec 31, 2017 23:59:59").getTime(); ;)
29th Dec 2017, 2:11 AM
visph
visph - avatar