how to create instance of the class created with constructor code example
Example: how to create instance of the class created with constructor
const Prius = new Car('Prius', 4, true);
Prius.displayMake(); // This car is Prius
const Prius = new Car('Prius', 4, true);
Prius.displayMake(); // This car is Prius