4. Adding Properties - Syntax question


#1



Just curious why it won't let me pass (gives a syntax error - "Expected {" ) without commas after each friend object's curly braces, when the hint example does not include them. Do they always need to be there? Thanks in advance.


    var friends = {
        
        bill: {
        firstName: "Bill", 
        lastName: "Gates", 
        number: "695-2638"
        },
        
        steve: {
        firstName: "Steve",
        lastName: "Jobs",
        number: "555-0808"
        },
    };


#2

You have commas between firstName and lastName too. Same thing.
And they are separators, not terminators.