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 trialcamberden
2,729 PointsHow do I run a workspace to yield my output?
Hi there, Treehouse.
I've returned to Treehouse after a while to aid my study in a training program, so I lost my familiarity with these workspaces. I am going through some intermediate courses on web connectivity like AJAX and I can't find anywhere where to actually run a workspace file. I'm at a standstill with Treehouse and am running through all these tutorial videos just to find a simple shortcut which should be more obvious. Please let me know how I could execute a file. Thanks!
1 Answer
Steven Parker
231,248 PointsYou forgot to provide a link to the course page you are working on, but if you are building code for the browser, you would "run" it by opening a preview using the "eye" icon button in the upper right of the workspace.
And if you are building code for node.js, you would run it by giving a console command. For example, if your program was named "test.js", you would use:
node test.js
camberden
2,729 Pointscamberden
2,729 PointsAhh, I see. The eye icon does it. Thanks!