Please enable JavaScript to use CodeHS

Introduction to Computer Science in JavaScript (Bulldog)

Lesson 12.10 Iterating Over an Object

Description

In this lesson, students will learn how to use a for…in loop to iterate over all of the keys in an object.


Objective

Students will be able to…

  • Iterate through the keys of an object
  • Better understand the difference between keys and values in an object