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) Working With Numbers The Random Challenge

The Random Challenge

This challenge is not sinking in for me. I've read people's answers and the replies, but when I attempt to write the code, I am at a total loss. Separately the concepts make sense, but when I try to put them together, I get lost. What would be the simplest, most basic way to accomplish the challenge?

George Vardikos
George Vardikos
6,889 Points

Hey, can you provide some more information?

George Vardikos
George Vardikos
6,889 Points

Hey, can you provide some more information?

Hey thanks George for your question. After I posted my question, I watched the solution video and got some more insight in to how to complete the challenge. I think my issue is understanding the formula's and when to use them and/or which ones to use.

1 Answer

Hi Leona,

When I have trouble understanding a formula, or some lines of code, I break it down to the simplest elements possible, then put alerts or console.log's everywhere. Pretty soon each step is so simplified that no detail is missed.

Another good way to get used to JavaScript is to play with it interactively, like in the Chrome or Firefox web developer's console. There are also entire web sites like CodePen that let you play with JS one line at a time.

Hope this helps, take care!

-- Cal