Question: You should implement the Person prototype which has the following characteristics: 1. The name property which is accessible by other objects of this prototype 2.

You should implement the Person prototype which has the following characteristics: 1. The name property which is accessible by other objects of this prototype 2. The password property which cannot be accessed by other objects of this prototype 3. The counter property whose value is shared among all objects of this prototype. You need to create two objects of this prototype in order to do the following tasks: 1. Show how to access the name property in both objects. 2. What output do you get if you try to access the password property? How can you correct it? 3. How to access the counter property? If you change the value of the counter property in one object, does it affect the property value on the second object? JavaScript
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
