Question 24
Consider the following Script embedded in an HTML document.
var var1 = 25;
const exObj = { var2: 45, var1: 35, inObj : { var1: 45, inObjFunc: ()=>{ return "Value is " + this.var1; } }, exObjFunc: function(){ let var2 = 10; return "Value is " + this.var2; } }
let x = exObj.inObjconsole.log(x.inObjFunc())console.log(exObj.exObjFunc())What will be the output on console, if the HTML document is rendered using a browser?