How does prototype delegation / inheritance work ?
May 30, 2024 · 2 min read · Let us look at the following code snippet: //constructor function const Employee = function (empId, empName) { //instance properties this.empId = empId; this.empName = empName; }; This is a basic constructor , now what if I want to add a method ...
Join discussion