Did you create a key called interests for myObject?


#1

`var myObject = {
name: 'Eduardo',
type: 'Most excellent',
key: 'Interests'

};`
@albionsrefuge


#2

In that object that you have created there, the keys are:

name
type
key

It sounds like the exercise would like you to make a key called interests.


#3

Oh, so i have to make on called intrestes


#4

I'm not looking at the exercise (not sure which one it is), but from the error mesage I would say yes, that's right.


#5

I did that but look at this
`var myObject = {
name: 'Eduardo',
type: 'Most excellent',
interests: 'Reading Comics'

};`

Did you give your interests key an array value?


#6

Remember what we have to do to make something be an array?


#7

Let me think... No i dont remember


#8

[ ]


#9

`var myObject = {
name: 'Eduardo',
type: 'Most excellent',
interests: [Reading Comics]

};`

I did that but it says
SyntaxError: Unexpected identifier


#10

You still need to put quotes on strings, even if they are an element in an array. Reading Comics is a string.


#11

var arr = ["singing", "drawing"];
var myObject = {
name: 'Eduardo',
type: 'Most excellent',
interests : arr,

};