Building an Address Book


Building an Address Book
More People

var bob = {
firstName: "Bob",
lastName: "Jones",
phoneNumber: "(650) 777-7777",
email: ""

var mary = {
firstName: "Mary",
lastName: "Jonson",
phoneNumber: "(650) 888 - 8888",
email: ""

var contacts = ["bob", "mary"];


in the cosnole i have:
(650) 888 - 8888

but Oops, try again. Make sure that mary is the second object in contacts

I thing mary is the second object in contacts.


You add to your conatcts array two Strings and not two objects.
Remove the quotes around bob and mary.


Hello world!!! First post on Codecademy Forum.
Have the same Address Book problem.


Thanks dookoo_de. That solved it.


My code is exactly like yours, but it appears: SyntaxError: missing before statement.

I've alredy reloaded the page...
Any clue of what it is?


Without your code we didnt can help you.

Please show your complete Code here.



A post was split to a new topic: Building an Address Book - what am I doing wrong