Kindly help me with the code below.I am getting an error as shown below


ERROR : 'Make sure that mary is the second object in contacts'

var bob = {
    firstName: "Bob",
    lastName: "Jones",
    phoneNumber: "(650) 777-7777",
    email: ""
var mary = {
    phoneNumber:"(650) 888 - 8888",
var contacts= ["bob","mary"];


HI you shouldn't put the " " around the names in

var contacts= ["bob","mary"];

because they are object so if you put " " around them it make them Strings


you are taking object into an array

no need quote

var contacts= ["bob","mary"];//wrong


Hey thanks a lot for the help :slight_smile:


thanks a lot for the help :slight_smile: