JSFiddle - React, Tailwind, and code Playground
JavaScript
function Person(name, age){
this.name = name;
this.age = age;
}
function Employee(location){
this.location = location;
}
Employee.prototype = new Person("Larry",45);
var emp = new Employee("USA");
console.log(emp);