Hacker News new | ask | show | jobs
by profmonocle 1818 days ago
Another fun one:

    > new Date().getYear()
    121
Of course this is avoided by using getFullYear(), but I've always wondered why a language that came out in 1995 had a function that returned two-digit years.
1 comments

That is absolutely baffling, I cannot think why that was ever implemented