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

Workspace not running code?, resorting to testing in console instead

No matter what means I try to use workspaces, it doesn't work. I can launch the workspace, view all of its content and even modify and save stuff.... when I go to "refresh the browser"(hit the eye shaped button to preview it) it does not run the code. Only prints a blank page. What am I doing wrong? I've been having to test my stuff in the console which only works so far.

2 Answers

Steven Parker
Steven Parker
231,236 Points

The "eye" button in the workspace launches the preview window, you'll only need to do that once per session.

But each time you make any changes, you'll need to save your work (with the menu or Control-S shortcut) and then refresh your browser. The way this is done may vary with the browser, but many use the "F5" key as a shortcut. Doing both these steps will make your changes visible in the preview window.

It isn't making it visible (the alert box doesnt pop up and the console doesnt console.log)

Steven Parker
Steven Parker
231,236 Points

Take a look at this video about Posting a Question, and perhaps also this one about sharing a snapshot of your workspace.