var y = 1; if(void function f(){}) { y += typeof f; } console.log(y);
Output In Screenshot ------------------------
Explanation---->
(function () { var a = b = 3; })() ; console.log ("a defined? " + (typeof a !== 'undefined')); console.log ("b defined? " + (typeof b !== 'undefined'));
Output In ScreenShot ---->
Explanation---->
console.log (typeof typeof 1);
Output In ScreenShot ---->