Topic 2= "More People"


#1

var bob = {
firstName: "Bob",
lastName: "Jones",
phoneNumber: "(650) 777-7777",
email: "bob.jones@example.com"
};
var mary= new Object();
mary.firstName= "Mary";
mary.lastName= "Johnson";
mary.phoneNumber= "(650) 888-8888";
mary.email= "mary.johnson@example.com";

var contact= new Array();
contact[0]= bob;
contact[1]= mary;

this post comes with an error= Oops, try again. Did you remember to create an array called contacts?


#2

okay nevermind it was "contacts" and instead i wrote "Contact" without an 's'


#3

console.log(contacts[1].phoneNumber);

this is not work ,