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 Basics Working with Strings Variables and Strings Challenge Solution

What would you do....

I watched videos several times over and have restarted javascript course twice, but by the time i got to this video i couldn't do anything, would you work at it, or choose another career?

7 Answers

Rick Gleitz
Rick Gleitz
47,877 Points

Break down the problem into small steps, and even sub-steps if need be. Then work on one step at a time. Do your best, re-watch portions of previous videos as needed, and then watch Guil's solution. Bear in mind that there are multiple ways to do things in programming. If yours works, that's great, even if it's different than his. If yours doesn't work, don't worry. Watch his answer, understand it as best as you can, then go back and try it yourself again. If you fail a few times and repeatedly try, you're going to learn better than if you had gotten it right the first time (because you get a lot more practice, I think). It'll certainly be cemented in your brain. Keep on trying, but take frequent breaks. Hydrate!

Rick Gleitz
Rick Gleitz
47,877 Points

That's great. Keep on learning. You know, you don't really fail just because something comes out wrong a few times (or even never comes out totally right). You only fail when you quit. Just look at a child learning to walk, always falling down. Do they see falling as failure? Heck no, they don't quit. They get right back up after stumbling. In fact, we shouldn't even call it failing. We should call it stumbling. And our failures are not failures, they're stumbling blocks. I'm going to have to remember to refer to it as just that from now on. Take care.

Joseph Hookham
Joseph Hookham
2,493 Points

Jason when I did the challenge I had to refer back to the videos for a couple of bits. My code wasn't quite the same as Guill's but it worked. I also looked online for a bit of help.

Although there's a lot of well presented content on here, it doesn't really employ some of the best pedagogy. In other words, the teaching doesn't really reflect the learning process. Particularly not with language acquisition which is kind of what this is - another language).

So don't be perturbed if it doesn't click - I feel the same as you sometimes. I'm going to think of how I want to apply Javascript and work towards that specific goal - hopefully it'll help contextualise it better.

Thanks to Mark Casavantes, and Rick Gleitz for your encouragement.. I am telling myself off for worrying about it so much i'm going to redo my JavaScript course.. I have three weeks off work at the moment so i'm going to learn it...

Thanks again..

Mark Casavantes
Mark Casavantes
10,619 Points

Good Afternoon Jason,

Sometimes we hit a stopping point. Work on Design, Business, Digital Literacy or some other library topic and then try your Javascript again. I like watching https://thecodingtrain.com/Tutorials/ or do some problems on https://edabit.com/. I find some topics easier after working on something else. Also, take notes during the videos and record your wrong answers during quizzes. You can always Google topics you are having trouble with. Do not give up. Everything you learn is helpful.

Thank you,

Mark

mon Wil
mon Wil
2,007 Points

This thread really gave me the encouragement I needed. This challenge really threw up some doubts for me also. But reading everyones suggestions has helped me re think things. Thanks to you all.

Doug McGillivray
Doug McGillivray
4,467 Points

It's been awhile since the original post, so I am guessing you have kept at it and gotten over this challenge and many more. I am just arriving at this one and can see where the frustration comes from. I think one thing I often struggle with is that that the objectives outlined in these challenges and quizzes can often be a bit vague for my liking. When learning about these concepts, the commands make a lot of sense to me, but when the instructors try to put our skills to use they often lay out the challenges in ways that can be open for interpretation. This might seem a bit ridiculous but when I got to this challenge, I really did not understand what the objective was at all. I feel like a lot of my frustrations could be alleviated with more thorough directions. Hopefully your JavaScript and all other tracks were swift and more encouraging later down the line. I hope this for myself as well.