JSFiddle - React, Tailwind, and code Playground
by hemil patel
JavaScript
let Car = function( color) {
this.color = color;
};
Car.prototype.getColor = function() {
return this.color
}
let redCar = new Car('red');
console.dir(redCar)