logoalt Hacker News

Kyro38yesterday at 7:00 PM1 replyview on HN

You might want to play with https://jsdate.wtf/

One can't fathom how weird JS Date can be.


Replies

publicdebatesyesterday at 7:02 PM

Guessed 2 of the first 3 questions.

Got to question 4 and gave up:

    new Date("not a date")
    1) Invalid Date
    2) undefined
    3) Throws an error
    4) null
There's literally no way of guessing this crap. It's all random.
show 3 replies