JSFiddle - React, Tailwind, and code Playground
by Zaheer Ahmed
JavaScript
// Define the Student
function Student(fullName, school, courses) {
//To initialize or call parent class constructor we need to Human.call()
//for call() we need to pass this instance
//since fullName is Human class property inherited in student so we
//passed it to parent class
Human.call(this, fullName);
// Initialize our Student properties
this.school = school;
this.courses = courses;
};