Tossing in an array - Whats wrong with my code?


#1

Is there anything wrong here? It seems fine to me O_O.

"Add an address property to each of your friends and set that property equal to an array value."

var friends = {
firstName: "Steven",

age: 50,
eyeColor: "brown",

bill: {
firstName: "Bill",
lastName: "sodder",
number: "(206) 555-5555",
address: ['One Masd Way','Redmond','WA','98052']

        }

steve: {
firstName: "Steve",
lastName: "Matt",
number: "(206) 555-5555",

   address: ['One dsaay','Resad','WA','98052']

  }

};


#2

Are you getting any reference errors + could I see a link to the exercise.


#3

Hi thanks - It is number 5 - tossing in an array https://www.codecademy.com/en/courses/javascript-beginner-en-3bmfN/0/5?curriculum_id=506324b3a7dffd00020bf661'

says "SyntaxError: Unexpected identifier"


#4

What are you planning on doing with this?

Your missing a comma at the end, it needs a comma because you are going to be defining steve after him.


#5

Hi william, thanks - not sure what you mean by "do with this"?> I followed the exercise from the lesosn before and this was the result. Am I suppose to be adding more to the object outside of BILL and STEVE?


#6

No, I was wondering why you were adding this object descriptions when you only have to define Bill and Steve.


#7

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