Contact lists


#1

var friends = {
bill: {
firstName: "Bill",
lastName: "Gates",
number: "(206) 555-555"
}
steve: {
firstName: "Steve",
lastName: "Jobs",
number: "(205) 555-5555"
}
};

as far as I know I have everything in there correctly but its still throwing me an error


#2

Give each of your friends a firstName, lastName, and number. The value for each of these should be a string (check the Hint if you need help). Make sure bill's first name is "Bill" and steve's first name is "Steve" (again, note the capitalization)

here are the instructions for the exercise as well


#3

var friends = {
 bill: {
 firstName: "Bill",
 lastName: "Gates",
 number: "(206) 555-555"
 
 } //<------Missing Comma
  ^
 steve: {
 firstName: "Steve",
 lastName: "Jobs",
 number: "(205) 555-5555"
 }
};

Remember that every variable in an object is separated by commas, " , " so make sure you insert a comma there and you should be good to go!


#4

facepalm Thank you so much, I would've spent all day trying to find that mistake.