linkedin github twitter

What is an object?

An object is like an array, but you set the keys too, instead of 0, 1, 2, 3, etc.

For example, say you had an array of ages: [24, 57, 25, 12]. You clearly can't see what the person is, so we can turn this into an object:
{
  'Bob': 24,
  'Earl': 57,
  'Maria': 25,
  'Adam': 12
}
(Note: these are just random names and ages)


Your Object:

{
}