1// A list of ordered strings is a good case for an array:
2const sortedNames = ['Axl', 'Billie', 'Chuck'];
3// An item with named properties is a good case for an object:
4const box = { height: 4, width: 3, color: 'blue' };
5
6// Two types of collections
7// Arrays and objects are two ways of collecting data into a group.
8// The data can be primitives (strings, numbers, booleans):
9const namesArr = ['Danny', 'Donny', 'Joey', 'Jordan', 'Jonathan'];
10const userObj = { name: 'Jamie', age: 42 };
11// …or they can be made of other arrays or objects:
12const usersArr = [{ name: 'Jim', age: 4 }, { name: 'Al', age: 62 }];
13const miscObj = { colors: ['orange', 'red'], numbers: [1, 2, 3] };