Encapsulation, inheritance and polymorphism all work fine with JavaScript classes. OOP works just fine.
What doesn't work in JavaScript is functional programming.
What doesn't work in JavaScript is functional programming.
https://rybicki.io/blog/2023/12/23/promises-arent-monads.htm...
The issue is the bar has been raised for what people call "functional" now. Everyone is picky "OMG not pure so it isn't really functional!!"
Yeesh.