Please enable JavaScript to use CodeHS

Chapter 6


6.1 Array

Organizing Information in an Array

Creating Arrays

Setting Elements

Getting Elements


Making an Array

Make an Empty Array

Indexing Into an Array

Check Your Understanding

  1. Incorrect Correct No Answer was selected Invalid Answer

Exercise: Our First Array


Term Definition
Array Arrays are lists that store many values of the same type
Index Array values are stored at a particular index and we access elements in the array by referencing this index value. Index values in Arrays start a 0.
array.length Returns the length of the array
array[index] Accesses an element in the array to either update or retrieve.