JS Inheritance Simplified with ES6 classes
Jun 4, 2024 · 2 min read · Lets create a class , Staff : class Staff { constructor(empName, empId, dept, doj) { this.empName = empName; this.empId = empId; this.dept = dept; this.doj = doj; } //methods are added to the prototype property of the class em...
Join discussion