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 (Retired) Creating Reusable Code with Functions Random Number Challenge, Part II

confused

I feel as though I have grasped most concepts in this track so far, until I am presented with this challenge. I now feel like I have not grasped it as I am having difficulty putting it all together. Is this a sign that I should go through certain parts again, or is this to be expected at my noob stage?

Thanks

3 Answers

Diane Kerstein
Diane Kerstein
5,155 Points

This challenge is pushing you to think about boolean logic, invalid input, and throwing errors to catch them. None of which have been covered in depth in this course and all are things that make more sense with experience, so don't worry too much for feeling confused! Just as you become competent in one part of programming, you will become confused by something else, I promise :)

Along with Ari's recommendation, a good understanding of boolean logic will help you in every aspect of programming down to understanding the very hardware you're writing on top of. If you google "boolean algebra," you will find a wealth of information on the subject. Khan Academy, CS50, and youtube have information galore in a bite size formats for newbies just like you (as it is a foundational principle of CS!). Build on that and learn about boolean logic in CS, then boolean logic and conditionals, and finally boolean logic and error throwing. Then practice, mess up, and be confused until it sticks. Good luck!

Ali Amirazizi
Ali Amirazizi
16,087 Points

This is normal. You have learned programming syntax. However, syntax alone won't be enough if you want to become a good programmer. You have to learn how to think like one. This consists of learning algorithms, math, and logic. Syntax plays an important role once you have a firm grasp of the rest. I suggest looking on amazon for books on these subjects. Here's one I recommend: http://www.amazon.com/Think-Like-Programmer-Introduction-Creative/dp/1593274246/ref=sr_1_1?ie=UTF8&qid=1428956692&sr=8-1&keywords=think+like+a+programmer

Awesome, thank you. I am really enjoying everything so far and I appreciate the book suggestion. I'll take anything that will help me get a better understanding of what I'm entering into.