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 Solution

Here is my solution:

2 Answers

You can't share your workspace this way. This is what I see:

Wrong way to share treehouse workspace

Link like https://teamtreehouse.com/workspaces/6631602 is your private repository link. One and only working way is to share snapshot: take a snapshot, share the link http://w.trhou.se/aBcDeF123

Right way to share treehouse workspace

Hi Daniel!

Thanks for informing me about this. How about this one https://w.trhou.se/7uu17xy4la. Is this one viewable?

It's viewable.

It's working solution. I cant remember the challenge, but what if you put something like:

generateRandomNumberWithinRange(0,0);
generateRandomNumberWithinRange(100,100);

Haven't thought of that. I will try that one. Thanks Daniel!