Week 8

Collections – Objects & Arrays

Intro

In addition to the ‘primitive’ data types (Number, String, and Boolean), JavaScript also offers a pair of ‘collection’ types that allow you to group together multiple primitive values in a single variable. We have already seen the Object datatype in the form of the value the clock() function returns. This week we’ll lean how to create custom objects in our own code and also explore the use of the Array: a collection that organizes values by order rather than by name.

Sync Up

Activities

Right Twice a Day