+ 1
What the code below will output to the console and why?
(functions() { var a = b = 3; })(); console.log("a defined?" + (typeof a !== 'undefined')) ; console.log("b defined?" + (typeof b !== 'undefined'));
1 Answer
+ 4
The code outputs to the console because it is called with console.log() function.