Class definition
If you have a background in programming languages such as C# and Java, then you will be familiar with the concept of classes. Even if you have used JavaScript version ES6, you will have an understanding of what classes are. But JavaScript developers who have worked in ES5 would not have used classes before.
Class is like a logical container composed of related properties and method. The related word here is of special significance. So, if we define a class named Book, then this class will contain things related to books, such as author, title, publisher, and so on. If we define a class named TVShow, then this class will contain things related to TV shows, such as cast, description, duration, and so on. The class helps us ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access