JavaScript Professional — Medium
Key points
- JavaScript arrays can have non-contiguous indexes
- Assigning a value to an index beyond the current length increases the length of the array
- Accessing an index that was never assigned a value returns undefined
Ready to go further?
Related questions
