I got some error in coding please check

1 Like

Hi @Aakash. Pummarin here. Take a look at your created variable myBagpack where it should be myBackpack. And also there is a typo in equipment property key.

You see this right.

var myBagpack = {
    food: 'bananas',
    eqipment: 'map',
    clothing: 'hat',
    ___: ___
};
print(myBagpack.food);

Change it with this.

var myBackpack = {
    food: 'bananas',
    equipment: 'map',
    clothing: 'hat',
    ___: ___
};
print(myBackpack.food);

That’s it.

Hope this helps.
:slightly_smiling_face: :slightly_smiling_face: :slightly_smiling_face:

Thank u guys for u r help

No problem, my friend. You can ask me anytime if you need help. :innocent:

Thank you for your reply , I got it , I didn’t do this mistake again.

Write myBackpack instead of myBagpack


hi can @Pummarin_The_gamer or @Bhavishya_Dhiman can you help me

Sorry but I can’t help. I think @Pummarin_The_gamer can help you

1 Like

You have too many curly braces }. If you remove the curly brace on line 31, it should work.

Hope that helps!!!