Prototypal Inheritance in JavaScript
Medium
19
3
54.2% Acceptance
In this lab, you will learn about prototypal inheritance in JavaScript. You will create two constructor functions; Person
and Employee
. Then, by setting the prototype of the Employee
to an instance of Person
, you will make Employee inherit properties from Person. Finally, you'll create an instance of Employee with values for all inherited and original properties.