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.

JavaScript Introducing the Practice

Maddie Duffy
Maddie Duffy
3,659 Points

Are we using node.js here?

When doing this challenge and writing in the console "node forLoops.js" is this an example of using node.js? I am new to javascript and always hear that node.js is a valuable skill! Just trying to work out what it actually is and when it is used! Any help is appreciated! Thanks!

1 Answer

Brendan Whiting
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Brendan Whiting
Front End Web Development Techdegree Graduate 84,696 Points

Yes, we are using Node.js. When you use JavaScript in a website, the code is sent to the client's browser, and it's run by their computer. Node.js is a way of running JavaScript outside of the browser, for running scripts like this in your terminal, or for building complex server applications that connect to databases and handle authentication.