Please enable JavaScript to use CodeHS

AP Computer Science A (Mocha)

Lesson 5.3 Using Arrays

Description

In this lesson, students will learn how to traverse an array to access all of the array elements. They will then apply this to real-world activities.


Objective

Students will be able to:

  • Create arrays of various types, including objects.
  • Traverse arrays using a for loop
  • Explain what happens when a program tries to access an array index that doesn’t exist
  • Explain how different arrays can point to the same value and the implication of this.
  • Apply arrays to real-world examples.