JSFiddle - React, Tailwind, and code Playground

by manoj_antony32

JavaScript

function Car(make, model, year) {
  this.make = make;
  this.model = model;
  this.year = year;
}
var auto = new Car('Honda', 'Accord', 1998);
console.dir(auto instanceof Car)
//console.log(auto instanceof Car);
// expected output: true

//console.log(auto instanceof Object);
// expected output: true