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

Josh Virelli
Josh Virelli
5,107 Points

The Workspaces documents for this video are the wrong files. It is currently the story.js, not the Random Number js

Bringing this to Team Treehouse's attention.

5 Answers

Dave McFarland
STAFF
Dave McFarland
Treehouse Teacher

If you have deleted any old workspaces for this course, you should get the correct workspace from this video. However, many people don't seem to be able to access the new workspace.

Until we figure out this problem, here's a workaround. Visit this address: https://w.trhou.se/qfk3cx65cn It's a snapshot of the correct workspace.

Click the "Fork Snapshot" link in the upper right corner. This will open the correct workspace so you can follow along with the video.

Sorry for the inconvenience.

Just did this lesson today (Mon. 11/16/15). This problem still exists.

Dave McFarland
Dave McFarland
Treehouse Teacher

Ah ha! I uncovered the error. This should now be fixed. Sorry Kathryn Notson for the hassle. You'll probably need to delete the old workspace, then reload the workspace from this video: Random Number Challenge, Part II

Dave McFarland
STAFF
Dave McFarland
Treehouse Teacher

Hi Josh Virelli

I just tested this out and launched the workspace from this page: https://teamtreehouse.com/library/javascript-basics-2/creating-reusable-code-with-functions/random-number-challenge-part-ii

It worked for me -- sometimes an old workspace can carry over to the next video. You can go to your workspaces page at https://teamtreehouse.com/workspaces and delete the old workspace.

Then visit the video page again at https://teamtreehouse.com/library/javascript-basics-2/creating-reusable-code-with-functions/random-number-challenge-part-ii and click the green "Workspaces" button on the right side of the page -- it should say something about "launching a new workspace" for this video.

If that doesn't work let me know.

Erica Franz
Erica Franz
8,484 Points

I had the same issue. In my Workspaces list it showed the most recent was for Stage 5 Challenge 1, yet it's loading a workspace for the story.js file.

Not sure which Workspace to delete to try resolving the issue. Reloading the Challenge page and launching the Workspace anew only continues to load the wrong workspace. :(

Thanks!

Pamela Alvarez
Pamela Alvarez
5,681 Points

Despite deleting my previous workspace, I'm still experiencing the same problem. The wrong workspace which is file as story.js will consistently pop up when I reload.

I too am getting the wrong file. I get story.js with this init:

var adjective = prompt('Please type an adjective'); var sentence = "<h2>There once was a " + adjective; var verb = prompt('Please type a verb'); var noun = prompt('Please type a noun'); alert('All done. Ready for the message?'); sentence += ' programmer who wanted to use JavaScript to ' + verb; sentence += ' the ' + noun + '.</h2>'; document.write(sentence);

jerry bremser
jerry bremser
3,941 Points

same, bug still not fixed :/

Dave McFarland
Dave McFarland
Treehouse Teacher

Hi jerry bremser

Sorry that this isn't working for you. I've created a fork of the workspace. Go to this address: https://w.trhou.se/qfk3cx65cn

Click the "Fork Snapshot" link in the upper right corner, and you'll have the correct workspace for the video.

I'm not sure why it's not working for you -- if you deleted your old workspaces for this course, you should see the new one. But at least the workaround above should work for you until, we figure out what's going wrong.

jerry bremser
jerry bremser
3,941 Points

Thank you! That definitely helps. And thanks for the great course, it's been a lot of fun.