16. Please help on "Editing an Existing Object"



Code works but in the write up it says add a new key. Key and property are interchangeable, right?

var myObject = {
  name: 'Eduardo',
  type: 'Most excellent',
  // Add your code here!
  interests: [0, 1]


Hello @kevin.reliancegmail,

Key isn't interchangeably referred to as property. An object has properties (key: value).

So, in this case, interests: [0, 1] is a property of the object myObject with interests as key and [0, 1] as its value.

Hope this helps! :slight_smile:



That definitely helps! Thank you. Just to confirm, the property is the 'key' and the 'value'. And the key is just the key, right?

Thanks bayoishola!



Yes, that's it.

You're welcome.

Have fun coding! :slight_smile:


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