myarr[] doesn't refer to anything,
and myarr[i] does.
This is another way to populate an array of consecutive integers-
var myarr=[];
while(myarr.len gth<100) myarr.push('foo '+myarr.length)
oh ok, so i was hoping myarr[] = "foo"; would just add to the end of the array like php, but i can just use push instead then (doesnt matter if its at the end or not, just in the array is fine)
Comment