JSFiddle - React, Tailwind, and code Playground

by alessandro_pezzato

JavaScript

function Car(model, year, miles) {
    this.model = model;
    this.year = year: this.miles = miles;
}

var civic = new Car("honda civic", 2009, 20000);
                    
console.log(civic.toString());