You are previewing Jump Start Node.js.

Jump Start Node.js

Cover of Jump Start Node.js by Don Nguyen Published by SitePoint
O'Reilly logo

Chapter 2Let’s Get Functional


“I have always wished for my computer to be as easy to use as my telephone; my wish has come true because I can no longer figure out how to use my telephone.”

 --Bjarne Stroustrup, creator of C++


JavaScript is sometimes dismissed as a language used by developers who do a search on the Web, grab a random script, and make a web page to perform a certain task. In this chapter, we are going to dispel that myth once and for all. We’ll do this by building a stock exchange trading engine that’s perfectly capable of accepting orders and executing trades in a manner similar to NASDAQ or the New York Stock Exchange. We will call our fictional exchange the nockmarket, which is short for the Node.js stock market. ...

The best content for your career. Discover unlimited learning on demand for around $1/day.