Question 7
Consider the below javascript program, and predict the output if executed.
let x = 5;const obj1 = { x : 10, func : function () { console.log(x * this.x) }}const obj2 = { x : 20, func : () => { console.log(this.x); obj1.func.call(obj2); }}obj2.func();20
1005
NaN20
NaN5
50undefined
100undefined
50