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: All those array indices get the value undefined. If you remember, undefined is the value assigned to a variable that you haven’t initialized


Cover of Head First JavaScript Programming


What is undefined again?