- cross-posted to:
- [email protected]
- [email protected]
- cross-posted to:
- [email protected]
- [email protected]
I am a frontend dev. JavaScript (well, TypeScript) is my bread and butter. Even knowing its quirks I never would have thought how inconsistent
Date
actually is. I encourage everyone to try this quiz.This is what JavaScript haters should bring forth, not
0.1 + 0.2 !== 0.3
!There is a reason almost everyone use some Date lib, like Luxon and not the built in. And well, having a horrible built in lib that they can’t change due to legacy code breaking is nothing really new or unique to JS.
Floating point rounding issues are basic comp science issues. Hopefully nobody thinks that those are JavaScript quirks.
I got 10/28, but I was crying after the 7th question
I scored 13/28 on https://jsdate.wtf/ and all I got was this lousy text to share on social media.
Oof. I’ve been a JS dev since 1998.
I did not do well:
“I scored 9/28 on https://jsdate.wtf/ and all I got was this lousy text to share on social media.”
Ive been a dev for a long time. Im glad im not doing javascript all that much anymore.
The quirks in this quiz aren’t even universal, and vary based on which browser you’re using. See the table at https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse#non-standard_date_strings
Also I got 13/28 😑
Great quiz. It teaches you the rules while training you to expect the unexpected, even in the rare cases that the rules are applied consistently.
I got exactly half the questions right.I scored 8/28 on https://jsdate.wtf/ and all I got was this lousy text to share on social media.
don't tap for spoilers
The sequence of questions about new Date(“0”), new Date(“1”), and new Date(“2”) got me good.
That was so funny, I had to pause taking the quiz I was laughing so hard at question 9. The snark in the explanations is fantastic.
Same. I think I got one on accident too.
I got a 4/28 and got told I would have scored higher if I guessed at random. Ouch. (I am not a dev)
Except for some reason “2” is interpreted as a month, and the year is set to 2001.
Aight I’m out
Can we sue Oracle back for any of this?
deleted by creator
I scored 17/28 on https://jsdate.wtf/ and all I got was this lousy text to share on social media.
Idk anything about Date but got pretty far with intuition of JS whackiness
Thank god Temporal is finally in Stage 3, and already rolled out in Firefox. I can’t wait to be done with JS’s Date forever.