Question: Question 7 (1 point) function person(firstName,lastName,age,eyeColor) { this.firstName = firstName; this.lastName = lastName; this.age = age this.eyeColor = eyeColor; this.changeName = function (name) { this.lastName

Question 7 (1 point) function person(firstName,lastName,age,eyeColor) \{ this.firstName = firstName; this.lastName = lastName; this.age = age this.eyeColor = eyeColor; this.changeName = function (name) \{ this.lastName = name; \} \} var myMother = new person("Sally","Rally",48,"green"); myMother.changeName("Doe"); var young = new person("Marie","Randall",32,"blue"); myMother.changeName("Dane"); var x= myMother.age+young.age; console.log(myMother.lastName+young.lastName +x ); RallyRandall4832 DaneDoe 4832 DaneRandall80 DaneDoe80
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
