4.Adding Properties


#1

Hello! I don't understand why this code isn't working:

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

Thanks!


#2

Can you provide a link to the lesson?


#3

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


#4

you need to separate the bill and steve object with a comma:

bill: {
        firstName: "Bill",
        lastName: "Gates",
        number: "(206) 555-5555"
    } /* missing , */
    steve: {

see comment