20. Using Classes

In This Chapter

  • Learn what classes in the JavaScript world are

  • Create objects more easily by using the class syntax

  • Understand the role the constructor and related class constructs play

When it comes to working with objects, we have covered a lot of ground so far. We saw how to create them, we learned about prototypical inheritance, and we even looked at the dark art of extending objects as well. In doing all of this, we worked at a very low level and were exposed to how the object-flavored sausage is made. That’s great for really understanding what is going on. That’s not so great when making sense of complex object happenings in your app. To simplify all of this, with the ES6 version of JavaScript, you have support ...

Get JavaScript Absolute Beginner's Guide, 2nd Edition now with O’Reilly online learning.

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