var x = "hello " var my_closure = function (y) { alert(x + y); } my_closure("world");