16. Editing an existing object


#1


https://www.codecademy.com/courses/javascript-beginner-en-9Sgpi/3/3?curriculum_id=506324b3a7dffd00020bf661


I keep on getting the error "Oops, try again. Did you give your interests key an array value? " and i've no clue what a key array value is. (been like a year since i been on this website) any links to what a key value is or a detailed solution to my problem would be greatly apprieciated.


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

var newArray = [myObject];


#2

nvm i figured it out

var myObject = {
name: 'Eduardo',
type: 'Most excellent',
interests: ['Coding']
};


#3

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