The official website (http://www.nodejs.org) defines Node as “a platform built on
Chrome’s JavaScript runtime for easily building fast, scalable network applications.
Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.”
In this chapter, we’ll look at these concepts:
Why JavaScript matters for server-side development
How the browser handles I/O using JavaScript
How Node handles I/O on the server
What’s meant by DIRTy applications, and why they’re a good fit for Node
A sampling of a few basic Node programs
...Let’s first turn our attention to JavaScript