Abstract
Prior to ES6, classes never existed in JavaScript, but from the early days, many patterns have existed to emulate classical class-oriented development. The concept of classes was teased in various different forms, primarily due to the fact that classes and classical inheritance could not be supported inside JavaScript in a clean straightforward way. A class in ES6 is simply a function under the hood. It is nothing more than syntactical sugar over Objects and Prototypes, offering a convenient declarative form for class patterns that encourage interoperability.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2017 Deepak Grover and Hanu Kunduru
About this chapter
Cite this chapter
Grover, D., Kunduru, H.P. (2017). Classes in ES6. In: ES6 for Humans. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2623-0_4
Download citation
DOI: https://doi.org/10.1007/978-1-4842-2623-0_4
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-2622-3
Online ISBN: 978-1-4842-2623-0
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books