Editiing object


#1

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/courses/javascript-beginner-en-9Sgpi/3/3?curriculum_id=506324b3a7dffd00020bf661#

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

tried both neither work.



var myObject = {
  name: 'Eduardo',
  type: 'Most excellent',
  // Add your code here!
  interest: ['lol', 1, true]
};

var myObject = {
  name: 'Eduardo',
  type: 'Most excellent',
  // Add your code here!
  interest: 'snowboarding'
};



#2

Instruction:

Add a key called interests to myObject.

the name of key should be exact same what the instruction wants.


#3

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