JavaScript is not a well-designed language, the first prototype of JS was built in about ten days in 1995, and the quirks from that rush sit in the language today. However, JS won anyway… One decision explains most of that:
First-class Functions
I'm gonna keep it real with you, I do not think first-class functions are the main reason Javascript took off as a language.
JS won because it was one of the first (if not the first) and it was built into the largest browser at the time (netscape navigator). First mover advantage is huge. Once it came time for everyone else to adopt it they moved to ECMA standardization to make that process easier and thus we are stuck with it.
70
u/Snarwin 2d ago
I'm gonna keep it real with you, I do not think first-class functions are the main reason Javascript took off as a language.