#javascript
Read more stories on Hashnode
Articles with this tag
In this article we would cover one of the fundamental concept of OOP, Encapsulation. Encapsulation is the practice of bundling the data (variables)...
In this article we would see how we can implement inheritance through objects Lets create a parent prototype object : const staffProto = { ...
Lets create a class , Staff : class Staff { constructor(empName, empId, dept, doj) { this.empName = empName; this.empId = empId; ...
Lets create an Employee constructor function with the following instance properties. const Employees = function (empName, empId, dept, doj) { ...
Well the answer is NO. Hey there ! Welcome back to another read. It is possible in Javascript to manually implement prototypal inheritance. Well how...
In our previous article we saw what is prototype inheritance. If you haven't read about it , do have a look at...