9INTRODUCING JAVASCRIPT CLASSES

image

Unlike most formal object-oriented programming languages, JavaScript didn’t support classes and classical inheritance as the primary way of defining similar and related objects when it was created. This left many developers confused, and from pre–ECMAScript 1 through ECMAScript 5, many libraries created utilities to make JavaScript look like it supported classes. Although some JavaScript developers feel strongly that the language doesn’t need classes, the number of libraries created specifically for this purpose led to the inclusion of classes in ECMAScript 6.

When you’re exploring ECMAScript 6 classes, it’s helpful ...

Get Understanding ECMAScript 6 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.