Skip to main content

Classes in ES6

  • Chapter
  • First Online:
ES6 for Humans

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics