JSFiddle - React, Tailwind, and code Playground

by padma rubhan

JavaScript

function Product() {
   console.log(this.name);
}

function Food(name, price) {
  this.name = 'cheese';
  this.price = 5;
  this.category = 'food';
}

var d = new Food();

Product.call(d)