+ 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
6 Answers
+ 6
here's my try
https://code.sololearn.com/cyGrPxn559sL/?ref=app
+ 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
+ 4
Here is my solution in python:
https://code.sololearn.com/cXVYFnOhJPQ7/?ref=app
+ 3
Countdown to new year in Java
https://code.sololearn.com/cksJnc88lROj/?ref=app
+ 2
@visph: what do i need to do to fix it?
+ 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();
;)