Realated Questions
What output will be returned by the function in the following code?
var scope ="global scope"; functioncheckingscope() { var scope ="local scope"; functionf() { return scope; } return f; }
Which one of the given options can be considered as the correct output of the following code?
var addition=new Function("number1","number2","return number1+number2"); document.writeln(addition(10,5));
What will be the output of the following code snippet?
(function(a){ return (function(){ console.log(a); a = 6; })() })(21);