JSFiddle - React, Tailwind, and code Playground

by somya_kashyap3

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);