michael@0: michael@0: function foo(x,n) { michael@0: for (var i = -5; i < n; i++) { michael@0: x[i] = 10; michael@0: } michael@0: } michael@0: foo([1,2,3,4,5],5);