JSFiddle - React, Tailwind, and code Playground
by Joe Saad
JavaScript
class Vehicle{
constructor(car){
this.make = car;
}
startEngine(){
console.log("Engine Started!---", this.make)
}
}
const v = new Vehicle({make: "Honda", model: "Civic", year: 1994})
v.startEngine();