Closure without return 2014-01-23 code javascriptscope var bar; function foo(x) { bar = function() { alert(x); } }; foo(5); bar();