Except for some reason “2” is interpreted as a month, and the year is set to 2001.
Aight I’m out
I scored 10/28 on https://jsdate.wtf/ and all I got was this lousy text to share on social media.
It only took one question for me to start wanting to flip tables.
Ha this is even worse than I could have imagined!
Alright, enough making fun of languages that suck…let’s talk about JavaScript.
If you’re not very familiar with JS, watch the Wat talk before taking the quiz to know what to expect from this wonderful language.
And then promptly get yourself familiar with how the language actually works. https://github.com/getify/You-Dont-Know-JS
People who complain about JS often assume it has features of other languages and fail to realize it has its own architecture and winding history.
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.
The built-in lib is fine for basic stuff unless you do some crazy shit like expecting
"2"
to parse as a valid date.
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 😑
Can we start a new web with a better language/platform already?
Why? Why not improve JS (e.g. with Temporal), especially given how excellent Typescript is?
JS is a lost cause.
I wouldn’t call typescript excellent, if I did it would be on a very low standard.
It unquestionably is excellent. Can you name another language in common use with a type system that’s close to the expressiveness of Typescript?
Can we sue Oracle back for any of this?
Oracle? Oracle owns Java, not JavaScript.
They ended up with Javascript trademark (afaik, because the name was too close to Java) too. Sued node.js over something related.
9/28. WTF’ing through 90% of the questions.
I got a 4/28 and got told I would have scored higher if I guessed at random. Ouch. (I am not a dev)