Please enable JavaScript to use CodeHS

Chapter 6

Arrays

6.2 Traversing Arrays

Accessing the Array

Determining Array Size

Iterating over an Array

Iterating Over An Array - For Loop

Iterating Over An Array - While Loop

Array Out of Bounds

Finding a Target Value

Check Your Understanding

  1. Incorrect Correct No Answer was selected Invalid Answer

Exercise: Print Even Array Indices

Vocabulary

Term Definition
return Keyword used in methods to return a value back to the initial program that called the method.
race condition A situation when a device or system has two or more operations running at the same time that must be completed in proper sequence.
Sklearn A machine learning library that provides public access to machine learning algorithms