Suppose that there is a javascript array called fruitbox with length 10000.
Guess1
The actual structure of javascript array is literally linear.
(item delimiter item delimiter item delimiter ...)
It will generally take much more time, (about 1000 times more) to get fruitbox[5000] than fruitbox[5].
It is likely to find 5000th person/5th person in 10000 persons standing in line when your are standing at 1th person initially.
Guess2
The actual structure of javascript array uses indexing.
Given a natural number n, PC can get n-th element immediately.
It will generally take similar time to get fruitbox[5000] or fruitbox[5].
It is likely to find a word in 5000th page/5th page in 10000 page dictionary.
Which is true Guess1 or Guess2 ?