JavaScript classes introduced in ES6/2015

JavaScript classes introduced in ECMAScript 2015 are syntactical sugar over JavaScript’s existing prototype-based inheritance.

Source: Classes – JavaScript | MDN

As a backend guy, I don’t look at JS very often. This seems like a big improvement to readability. Like probably a lot of other people, I approached JS expecting it to be Smalltalk-style oop (like python/ruby) and was nonplussed. In fact it’s based on a different model altogether other examples of which you’ve probably never heard of.

Leave a Reply