Nearly all of the major programming languages now have first-class functions and closures. Even Smalltalk, a “pure” OOP language, has always had first-class functions and closures since 1980. JS is not even remotely special in this regard.

Nobody uses prototypal inheritance except JS devs. Prototypal inheritance has been around since 1987 in the Self language but nobody cares for it. Even the latest OOP languages like Dart and Swift chose to ignore prototypal inheritance.

Prototypal inheritance is so wonderful that no other significant programming language in the past quarter century has adopted it, except for Lua.

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