Question 23
Consider the following JavaScript code:
const globalVar = 100;var value = 200;
const calculator = { value: 50,
compute: function() { const innerObj = { value: 25,
regularMethod: function() { return this.value; },
arrowMethod: () => { return this.value; },
mixedMethod: function() { const arrowInside = () => this.value; return arrowInside(); } }; return { regular: innerObj.regularMethod(), arrow: innerObj.arrowMethod(), mixed: innerObj.mixedMethod() }; }};
const result = calculator.compute();console.log(result.regular);console.log(result.arrow);console.log(result.mixed);Assuming this code runs in a browser environment, what will be the output?