What value is obtained when executing object1.join(object2) in the following code?
const object1 = {
name: 'object1',
join: function(obj) {
return this.name + ' and ' + obj.name;
}
};
const object2 = { name: 'object2' };
What value is obtained when executing object1.join(object2) in the following code?
const object1 = {
name: 'object1',
join: function(obj) {
return this.name + ' and ' + obj.name;
}
};
const object2 = { name: 'object2' };