var closure = (function(){ var arr = [1, 3]; function printArr() { console.log(arr); }; return [arr, printArr]; }()); closure[1](); // [1, 3] closure[0][1] = 2; closure[1](); // [1, 2]