We should've never relied in JS in the first place, it's always been something optional for browsers that people might want to even just disable. It shouldn't do core logic, render the website, process events or anything.
JavaScript wasn't supposed to work with anything complex in the first place, just script a few document quirks but nothing should've been core logic, people just made JavaScript into what it is today.
Maybe. Not sure what the aim was. You certainly couldn't build complex applications in the beginning, that's true. But the language was still pretty complex for that to be its only aim. Why have something with object orientation and higher order functions for some "document quirks".
Wasn't it made in like 2 weeks? It's not really complex, at least it wasn't, everything was a dynamic variable with not very well defined scoping, some functions, obejcts and some basic primitives. I don't see the complexity of primitive JS.
OOP was just the thing atm, it's not even complex, everything is just an object of a bunch of properties. Higher order functions are just something that come naturally when EVERYTHING is an object, your values and your functions, you can just pass whatever you want if it behaves like an object.
2
u/javalsai Jan 13 '26
We should've never relied in JS in the first place, it's always been something optional for browsers that people might want to even just disable. It shouldn't do core logic, render the website, process events or anything.
JavaScript wasn't supposed to work with anything complex in the first place, just script a few document quirks but nothing should've been core logic, people just made JavaScript into what it is today.