This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// #javascript if not for closures, this should blow up | |
var f = function(){ | |
if (true) {var v1= 1;} | |
if(true) {var v2 =2;} | |
return v1+v2; | |
} | |
console.log(f()); |