3 ms·
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
by profmonocle 5y 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.
- dbbk 5y agoThat is absolutely baffling, I cannot think why that was ever implemented