Yeah. You're pretty much right.
The solution is to not use OO. JavaScript is not that good at it anyways.
The solution is to not use OO. JavaScript is not that good at it anyways.
Unfortunately legions of Javascript fanboys have recently noticed that they don't have the keyword 'class' in the language, but they do have functions and have decided this means that it's a functional programming language, and they knew better than everyone all along.
They'll then follow it up with some perfectly nice procedural code and tell themselves it's functional with a nice little pat on the back.