Prototypal Inheritance in JavaScript

Medium
21
3
52.5% 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.