start=1; number=5; var path = []; for (var i=1; i<=number; i++) { path[i] = []; path[i][1]=start; alert(path[i][1]); }