Building an Address Book
Digitizing People

Meet Bob. Bob is our friend. But how do we get in touch with Bob?

Look at the code in the editor. We have Bob's information stored in an associative array named bob. bob has a property called firstName which has a value of "Bob". Similarly, it has properties lastName, phoneNumber and email which each have values.

To access the values for each property we write array.property. Check out line 8 where we log to the console bob.firstName.


Copying the format we used on line 8, fill in lines 9 and 10 so that Bob's lastName and email are printed out.

Stuck? Get a hint! Hint
Get live, fast support from Codecademy Advisors when you get stuck. Learn more.

To access the value of a property, we write array.property. So to get Bob's phone number, we'd write bob.phoneNumber