Question 13
Consider the following javascript program, and predict the output, if executed in a REPL environment.
var a = 39const obj1 = { 'a' : 50, 'func' : function () { let in_func = () => console.log("This :", this.a, ", Normal :", a) in_func(); }}
const obj2 = { 'a' : 60, 'func' : function () { let in_func = () => console.log("This :", this.a, ", Normal :", a) in_func(); }}
obj1.func.call()This : 39 , Normal : 39
This : undefined , Normal : 39
This : undefined , Normal : 50
This : 39 , Normal : 50