how can I do this???
Hey there. The variable you named is mybackpack
, while this course is searching for myBackpack
variable. Try changing b to B.
P
var myBackpack = {
food: ‘bannana’,
equipment: ‘map’,
clothing: ‘hat’
}
consol.log(myBackpack.food)
Hey there. If you copy and paste your code without formatting the code, then your code will get messed up.
This code is formatted:
let isCodeFormatted = true;
This code is not formatted:
let isCodeFormatted = false;
Try inserting 3 backticks (```) above and below your code, and your code will be effectively formatted.
Here’s a code-formatted example:
console.log("I am a formatted code!"); /* The code is formatted. */
And a not code-formatted example:
console.log(“I am not a formatted code.”); /* The code is not formatted so it will get messed up. */
Here is a topic that teaches everyone on formatting code.
Tap here to go to the topic that teaches everyone on formatting code!
P
sorry…but i am unable to complete this…???
StilI I am unable to complete…need help.
Hey there. Try posting a screenshot so that I can take a look. Without a screenshot, I can’t see what’s wrong with it.
P
Hi there. It looks like your code is not correct.
You see this right.
var myBackpack = {
food: 'bananas',
eqipment: 'map',
colothing: 'hat'
};
print(myBackpack.food);
Change it with this.
var myBackpack = {
food: 'bananas',
equipment: 'map',
clothing: 'hat'
};
print(myBackpack.food);
Hope this helps.
Pummarin
Hello please, I am stuck kindly help. I have tried several times I don’t know what am not doing right.
Hey Heather! It´s me Heather from grasshopper! I heard about your problem! I have a fast and easy solution! Just Email me and I´ll guide you from there!
Thanks!
Heather🙂
Click or tap to reveal.
Hi @Hayley_Jewel. It seems like the screenshot does not upload properly, so I can’t see your code.
If you upload it again properly, then I can see your code.
Thanks!
Hie Heather, i am having a problem of getting past Pack your Bags