const small = {
a: 1,
func: function(b, c, d) {
return this.a + b + c + d;
},
};
const large = {
a: 5,
};
small.func(2, 3, 5);
I need to access a: 5 from large object into small object. currently small.func(2,3,5) is giving 11 as output. I need to get 15 as ouput.
.call()to bind thethistolarge