array1 = [0] i = 0 while i<100000 do array1.push(i) puts i i=i+1 end puts array1[i] #outputs 999999