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 Node.js Basics 2017 Building a Command Line Application Planning Our Project

Josie Nagy
Josie Nagy
14,992 Points

Why are we using Node.js to build this project?

I realize this question is outside the scope of this video, but I thought I should ask anyway.

Is this a good use case for using Node.js? If so, why is that? Is it because we simply don't need the browser to create this type of functionality? Can someone give me some other examples of when it's appropriate to use Node.js vs the Browser?

Thank you for your time.

1 Answer

Steven Parker
Steven Parker
231,275 Points

Probably the most common use of node.js is to implement server side functionality ("back-end"). Since the server wouldn't have a browser application at all, node.js is likely the only way to execute JavaScript there.