Wpis z mikrobloga

@TenGumis:

The getYear() method returns the year minus 1900; thus:

For years greater than or equal to 2000, the value returned by getYear() is 100 or greater. For example, if the year is 2026, getYear() returns 126.

For years between and including 1900 and 1999, the value returned by getYear() is between 0 and 99. For example, if the year is 1976, getYear() returns 76.

For years less than 1900, the
@nieumiemtanczyc:
No ale JS właśnie trochę powstał w ten sposób.

JavaScript was originally developed in 10 days in May 1995 by Brendan Eich, while he was working for Netscape Communications Corporation.


To, że się tak rozwinie było totalnie nieprzewidziane, więc architektura całego języka w wielu miejscach może sprawiać wrażenie źle przemyślanej - bo jak miała być gdy robiła to jedna osoba przez dwa tygodnie :)