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 Loops, Arrays and Objects Tracking Data Using Objects The Build an Object Challenge, Part 2 Solution

Nour El-din El-helw
Nour El-din El-helw
8,241 Points

If I didn't get the solution..

So..I used another away which was way more complicated and has some errors even so is that normal? Or do I have a problem learning? Shouldn't I have done that challenge easily? I feel so bad...

2 Answers

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there, Nour El-din El-helw! You absolutely should not feel bad. Learning is a process. It doesn't just take time, but also effort. And what you've shown here is that you're willing to put in the effort which means that you will learn it.

Ironically, the best way to learn to solve problems is by solving problems. There will come a point where you see recurring problems that only vary slightly from ones you've solved before. It's basically a variation on a theme. But this is likely the first time ever even seeing this problem. It's natural that it will take you a bit longer the first time around. Have you ever seen a small child try and solve a jigsaw puzzle for the first time? Very often they just start trying to put pieces together a little randomly. But it doesn't take long at all until they figure out that the best way is to start with the edges first. Much like that, you will learn how to break down and solve problems through practice. As long as you're willing to practice, the possibility of learning and growing exists.

Also note that learning is not linear. Some things are just going to be a little more abstract and difficult to understand in the beginning. That's true for just about any topic imaginable. But once it makes sense, nothing can erase that. It probably did take you a bit to learn to add two numbers when you were small, but now it feels natural, doesn't it? :smiley:

You might be interested in this blog article I wrote for Treehouse some time ago.

Anything worth doing and learning requires persistence and effort. If you're willing to give those, then the amount you learn is relatively unlimited.

Take a look at this quote by a fairly prolific writer and programmer:

"Every great developer you know got there by solving problems they were unqualified to solve until they actually did it." - Patrick McKenzie

A problem might not seem solvable on first glance, but somewhere there is a solution. Hope this helps! :sparkles:

Nour El-din El-helw
Nour El-din El-helw
8,241 Points

It really helped! Thanks a lot, I will definitely read the blog too. Again, thanks :)

Kimberly Dolcin
Kimberly Dolcin
4,369 Points

what a lovely response and article. Thank you, seriously! Javascript is super hard at this point for me and i felt like giving up until i read your article!

Jennifer Nordell
seal-mask
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Kimberly Dolcin you're quite welcome and it comes from the heart and with some hard-learned lessons behind it. But I can tell you this, the only way to guarantee failure, is to give up. So don't :sparkles:

I'm glad I came across this post and link to that article; I attempted that last object notation challenge and unlike the original commenter, I didn't get the answer. I even searched the net looking for a solution and couldn't find any good examples of looping through objects inside arrays. The worst part is that even after watching the solution I still don't know how he did it! I will watch it again and work through it slowly, but I will definitely seek other resources to see if I can pick this stuff up.