jsam
1/31/2015 - 12:09 PM

what it will print out?

what it will print out?

function test() {
   console.log(a);
   console.log(foo());
    
   var a = 1;
   function foo() {
      return 2;
   }
}
 
test();