About Lesson
Objects in JavaScript
An object is an individual instance of a class. When we create an object, it gets its own copies of the properties and methods defined in the class.
Creating and Accessing Objects
JavaScript
const car1 = new Car("Honda", "Civic", 2020);
console.log(car1.make); // Output: Honda
console.log(car1.model); // Output: Civic
Each object created from a class has its own data and can be interacted with through methods.