JavaScript is not an OOP language, nor is it a FP language. It is a multi-paradigm language. But that’s being too respectful to JavaScript.

JavaScript is essentially an imperative/procedural language with some functional capability tacked on and prototype objects. Most people who learn and use JavaScript learn it first as a procedural language and, in fact, usually write procedural code with it. You have only to peek at the thousands of JavaScript libraries to see this is so.

Moreover, there are many in the FP community who question JavaScript’s claim of being FP. Mutability seems to be a common sticking point. But I digress. JavaScript is not a true OOP language.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store