Question: javascript Question 1: - Declare an object Person with the parameters first, last, age, eyecolor by using the constructor method. - Check the properties of

javascript Question 1: - Declare an object Person with the parameters first,javascript

Question 1: - Declare an object Person with the parameters first, last, age, eyecolor by using the constructor method. - Check the properties of Person by using console.log. - Add a new property named 'nationality' by using the prototype. - Display the properties again in console.log. - Add a new following function by using the prototype. - Display the properties again in console.log to show the name function. Person. prototype. name = function () \{

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!