O'Reilly logo
  • Ahmed Elgendy thinks this is interesting:

Say I have an array of length 10, and I add a new item at index 10000, what happens with indices 10 through 9999?

A:

A: All those array indices get the value undefined. If you remember, undefined is the value assigned to a variable that you haven’t initialized

From

Cover of Head First JavaScript Programming

Note

What is undefined again?