Thank you for the clarification. I was able to quickly solve this puzzle with you help.
thanks but I figured it out. I was just being stupid
I also feel like I got to this point and realized I don’t understand anything g about what I’m doing. I feel like I should start over.
I definitely know that feeling.
If you feel like it’s be useful to go through the course again you can do this yourself (just tap back into any puzzle or question).
To solve this puzzle you need to do three things:
- Create a for…of loop
- Have the for…of loop go through the array stored inside the
foodproperty, inside of the
otherBackpackobject. To do this you have to access an object’s property using
- Print out each element from the
foodproperty’s array. This will be one line of code using
print()and referencing the variable that’s looping through
Hopefully this helps a little!
Why does it keep hiding code from us. I’m a learner that needs to see everything that is going on. Just having me follow directions doesn’t teach me anything. I need to know why I’m doing something.
I tried to build the variable of otherBackpack, but turns out it’s already an entity that is just hidden for no reason. Just show me what I’m editing. Please.
Great feedback and something we’re working on prioritizing!
We hide some of the code to not make the environment overwhelming (since a phone screen has limited real estate), and allow users to focus on the elements of the code they need to create/change.
However, I completely agree with you that this can be confusing — we are working on addressing this, so thanks for the feedback!
Cool, cool, thanks for the info. For the time being it’d help me (at least) if there was a heads up on ones that had hidden code.
Yes , the fact that the variables are already defined but hidden should more clear, this what had me confused
@Nardo_Bezemer — Noted! Thanks for sharing your feedback
It took some time to figure out but if it is solved than it’s stupidity easy =D
I solved it but its confusing, without knowing What the variable element meens, part of the code hiden ? It is more confusing this way.
@Zogy — thanks for the feedback! We’re currently trying to figure out the best way to surface this information, without making it overwhelming in the app.
Thanks for sharing your thoughts,
Thanks for the info, I was struggling trying to write all the code. I should’ve known, all you have to do is arange all the blocks in the right way.
When I try to add array in the loop, I get frustrated because there is no keyboard to add array
Post the snapshots of code
If i add mybackpack then it calls myBackpck… Whats the heck ?
I was finally able to finish it, you should have made the varibale element apparent from the beginning as we are creating from scratch