2 ms·
Like some other incredibly widely used programming language? https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Object_prototypes https://develo
by igouy 4y ago
Like some other incredibly widely used programming language?
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Object_prototypes https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Ob...
- skissane 4y agoWhich it is worth pointing out has (relatively recently, in 2015's ES6) added classes too – which are mostly just syntactic sugar for prototypes (but not entirely, since they also add some new semantics for which there is no equivalent in pure prototype-based code.) Looking to the future, they are likely to add more new semantics and syntax to classes, which will have no direct equivalent in pure prototypes, causing JavaScript/ECMAScript to evolve from a purely prototype-based language into more of a hybrid between prototype-based and class-based OO.