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

Akash Sharma
seal-mask
.a{fill-rule:evenodd;}techdegree
Akash Sharma
Full Stack JavaScript Techdegree Student 14,147 Points

Node.js Basics Stock Checking App

Hello, I have developed a simple stock checking app on the command line where you take the ticket you want and then a dash then after type the data you want like

node app.js MSFT-Open MSFT-Adj._Open MSFT-Volume

Github: https://github.com/akashs90/StockCheckingApp

Seth Shober
Seth Shober
30,240 Points

That looks awesome! Great work. Any reason you are using try/catch though? It blocks the event loop. Might I suggest using:

request.on('error', (err) => {
  // handle error
})