Help me I don't know what to do


#1


Editing an existing object


In the exercise, it says that add a key "interests" and give it a array value. I have done this but it says that I have not done this and it does not display.


var myObject = {
  name: 'Eduardo',
  type: 'Most excellent',
  interests: 'Dancing' , 
  
};


#2

Hey so whilst your Key is correct it's Value is incorrect..

give it a array value

['Dancing', true, 17]

Would work because it is an array..

Finally, on your final Key you do not need to add a coma afterwards :smiley:

:grin:


#3

Hi there.

The question wants the interests key to be an array, therefore you'll need to provide more than one interest in array syntax.

For example:

interests: ["sports","gaming","chicken"]

#4

Thanks:joy:
you helped me on that level which i have been stuck on for a whole day


#5

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