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!
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
Maureen Johnston9,058 Points
J Scott Erickson11,883 Points
The easiest way to run code for testing would be to include your .js file into a .html file and open the page in a browser. then right click and select 'inspect element' then you can use the console in the popup to write, test, and debug code. (These instructions work for Google Chrome, been a while since I used Firefox and even longer since I used IE but I assume this is a similar process to at least Firefox).
Ali M Malik33,293 Points
Joseph Potts11,187 Points
However, if you still think that what you're doing requires a localhost (perhaps you forgot to mention it) then I would suggest using a cool software called WAMP to setup a local server. It's pretty easy too!