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. ...

Get Jump Start Node.js now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.