The Object Type

Learn about the Object data type

We'll cover the following


An object is a data structure with String keys and arbitrary values. Imagine it like a machine that accepts a key and gives you value. Some people call this data structure associative array; others call it hashmap. These names may sound fancy, but essentially we mean the same damn thing.

Symbol keys are also allowed for strings. This is an advanced topic; you will learn it later.

Get hands-on with 1200+ tech skills courses.