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 on Terminal

Is there anyway to get Javascript working within my Terminal window on a Macbook Pro? I have Yosemite, and I like working with my Terminal window better than opening up a browser console.

2 Answers

Install node https://nodejs.org/

You should be able to run javascript from the terminal.

Hi Mathew,

Sorry for the delay in getting back to you following your answer request, are you looking to write javascript in the terminal and print it to a file to save ? / Run the javascript ?

Craig