Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

General Discussion

camberden
camberden
2,729 Points

How 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
Steven Parker
216,136 Points

You 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
camberden
2,729 Points

Ahh, I see. The eye icon does it. Thanks!