2024-07-18

· 👁 53 · 92

Guess the output #javascript

const obj4 = {

  name: "obj4",

  getThis() {

    return this;

  },

};

const obj5 = { name: "obj5" };

obj5.getThis = obj4.getThis;

console.log(obj5.getThis());