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, 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
Get step-by-step solutions from verified subject matter experts
