Error in adding properties


#1


missing } after property list


Replace this line with your code. 
var friends={
    darshan:{
    firstName:"DA",
    lastName:"Kumar",
    number:"9877456234"
    }
    sushma:{
        firstName:"D",
    lastName:"S",
    number:"874334549"
    }
    steve:
    {
        firstName:"Steve",
    lastName:"Jobs",
    number:"8324565657"
    }
     bill:{
         firstName:"Bill",
    lastName:"Gates",
    number:"7864535236"
    }
};


#2

The key-object pairs in friends are properties that need to be comma separated.

bill: {

},
steve: {

}

#3

Thanks for your help


#4

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