Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript JavaScript Objects Loop Through Objects Display an Array of Objects on the Page – One Solution

I understand how the code fo this project works, but I wasnt able to do the entire exercise on my own. What should I do?

Should I continue moving foward with the classes, or should I redo the lesson? Any tips so I dont have more problems in the future.

4 Answers

Robert Manolis
STAFF
Robert Manolis
Treehouse Guest Teacher

Hi Victor Reynaga, I would recommend at least considering repeating the lesson. Nothing wrong with that type of review. You don't need to be an expert on some individual concept or topic to move forward. But it's good at least have a firm handle on the material before moving forward, as each subsequent section and lesson will build off of previous lessons and have new fundamentals to teach. And you don't want to be still struggling with the fundamentals of yesterday's lessons while trying to learn the fundamentals of the lessons of today. :thumbsup:

Thank you. I take notes while i do the lessons and afterwards try to create a small function using what i learned from that lesson on my own as i hear the best way to learn code is to mess around with it and see what works and what doesnt. I understand how the exercise worked, just knowing how to get started and the set up has me a bit confused. I will take your advice and redo the lesson. Thank you.

I got stuck because I was trying to use (let key in object) the entire time. I gave up after 3 hours and didnt realise I needed to use a for loop.

Ali Omidfar
seal-mask
.a{fill-rule:evenodd;}techdegree
Ali Omidfar
Full Stack JavaScript Techdegree Student 4,238 Points

Same here Daniel Medley. I thought for sure I will need to use the brand new material learned in this last course for this project and after I gave up and looked at the solution before I had a running code (first time I've done it so far) I realized that I only needed a simple for loop. I will be sure to use my entire knowledge for projects from now on and not just the most recent one.

Same here. I could not do this on my own. I feel like there is a gap somewhere when I am trying to solve problems like these. I feel like I need to know other than just coding to know how to solve this problem....Maybe algorithms? Feeling a bit disappointed in myself.

Hello Auora!

I feel your pain. Some suggestion I came across that are helping me adapt my way of solving problems is:
1. Look for apps/ books that requires you to solve problems in different ways. 2. Try to remember computers are stupid and sometimes you need to really dump it down for it before you can get really creative with your coding. (Don't do what I did. Over think your coding.) 3. Try writing down you steps on a piece of paper first. This has helped me in the past. 4. Check out Youtube on techniques on how to learn faster.(Hard to apply but a game changer to programming!)

Hi Craig,

Thank you so much for the suggestions. They are much needed. I am starting to understand why they say programmers don't really code much. Its a whole another set of skill to learn how to solve the problem like you mentioned and use what you have learned by writing down how you will solve the problem with coding before even coding. I have not given youtube a try but I will definitely look into the books because I enjoy reading so I can easily adapt to it. Your comment has really helped me understand this better. Thanks Craig.