Please enable JavaScript to use CodeHS

Chapter 4

Basic Data Structures

4.8 Intro to Objects/Maps

Keys and Values

Creating an Object, Map, or Dictionary

Getting Items Out of a Dictionary

Phonebook

Check Your Understanding

  1. Incorrect Correct No Answer was selected Invalid Answer

Exercise: Sidekicks

Vocabulary

Term Definition
Object Also called a dictionary or map. Lets us store pairs of keys that are matched with a specific value.