Please enable JavaScript to use CodeHS

Fundamentals of Cybersecurity

Lesson 13.5 Arrays and Objects

Description

In this lesson, students learn about lists/arrays and how to access an element in an array with an index so they can create ordered collections of items. Students also learn about another way to store data in JavaScript: objects. An object stores mappings from a key to a value.


Objective

Students will be able to:

  • Define an array
  • Create an array and access certain elements of an array by using an index
  • Define objects
  • Access a value in an object and add a key, value pair to an object