Classes & OOP
Classes are blueprints for creating objects with shared properties and methods. They introduce Object-Oriented Programming to JS.
Creating a Class
The constructor method runs when a new instance is created via the new keyword.
Inheritance
Classes can extend other classes to inherit their methods.
Practice
Challenge 1: Create a Car class with make and model, and a drive() method.