Question: Fill in the object constructor with the following methods below: getFirstName() getLastName() getFullName() setFirsthame(first) settastName(last) setFullName(first, last) Run the tests to see the expected
Fill in the object constructor with the following methods below: getFirstName() getLastName() getFullName() setFirsthame(first) settastName(last) setFullName(first, last) Run the tests to see the expected output for each method. These methods must be the only available means of interacting with the object. Each test will declare a new Person instance as new Persont Bob Ross) 4234 in 10 1 const Person = function(first, last) ( this.getFullName = function() { return ""; }; 5 6 }; return;
Step by Step Solution
3.47 Rating (160 Votes )
There are 3 Steps involved in it
function Personfirst last let firstName first let lastName last thisgetFirstNa... View full answer
Get step-by-step solutions from verified subject matter experts
