JSFiddle - React, Tailwind, and code Playground

by luka kupunia

JavaScript

function ConstructorCar () {}

ConstructorCar.prototype.drive = function () {
  console.log('Vroom!');
};

const car2 = new ConstructorCar();
console.log(car2.drive());