Contact list


#1


https://www.codecademy.com/courses/javascript-beginner-en-3bmfN/0/4?curriculum_id=506324b3a7dffd00020bf661


it is saying bill is not defined


Replace this line with your code. 
var friends =new Object();
{
friends.bill=new Object();
{
bill.firstName="Bill";
bill.lastName="Gates";
bill.number= "(206782989893)";
}
friends.steve=new Object();
{
steve.firstName= "Steve";
steve.lastName= "Jobs";
steve.number= "(1231421241)";
}

}


#2

you seem to mix object literal notation and object constructor, choice one of the two ways to create the object


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.