Please enable JavaScript to use CodeHS

Florida Foundations of Web Design

Lesson 6.16 Array Length and Looping Through Arrays

Description

In this lesson, students will be able to get the length of an array and learn how to loop through an array so they can have more functionality with arrays in their programs.


Objective

Students will be able to:

  • Determine the length of an array using the length property
  • Use the length of an array and a for loop to loop through the elements in an array
  • Loop over an array to filter or print certain elements based on tested criteria