Question: Given two objects as parameters obj1 and obj2, complete the addPropertiesToObject function that adds all properties of the first object to the second object and
Given two objects as parameters "obj1" and "obj2", complete the addPropertiesToObject function that adds all properties of the first object to the second object and returns the second object.
function addPropertiesToObject(obj1, obj2) { // Your psuedocode here // Your code here
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
