codepen.io
Is It Christmas?
10
Remember http://isitchristmas.com? I'm just playing around with the same idea and some emoji.... Read full article
Remember http://isitchristmas.com? I'm just playing around with the same idea and some emoji.... Read full article
Bryan Moslo
10y agoI think your code will return YES on the 25th of each month because d.getDate() !== 25 will be false if today is 25th
Matt Smith
10y agoBut the condition also requires
d.getMonth() === 11, so it should only return YES! on 12/25.Bryan Moslo
10y agoThen, there is an error in the code because it says:
if(d.getMonth() !== 11 && d.getDate() !== 25)
INSIDE OF
if(d.getMonth() === 11 && d.getDate() !== 25)
Bryan Moslo
10y agoAnyways it’s a good work and thanks you share! :D
Matt Smith
10y agoCrap, I was running a test on forgot to change it back. Thanks for pointing that out.