what it will print out?
function test() { console.log(a); console.log(foo()); var a = 1; function foo() { return 2; } } test();