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:

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!