Why is this not completely done? Tell me if any body knows

1 Like

Instead of using a string to store all the properties you should use brackets[]
Your code should look like this:

var myBackpack = {
food: [ ‘bananas’, ‘nuts’, ‘energy bar’] ;

[] keyword is called array and can store strings, objects, another arrays…

1 Like

If you don t understand let me know. I will try to make my explanation easier to understand

When you have problems with understanding a problem you can press right there and then press ‘suport forum’ and you ll find the explanation