Meet Node.js
First and foremost is Node.js—a platform built on Google’s V8 JavaScript engine that allows JavaScript to be run outside the browser. It extends JavaScript with binders for various C libraries, along with modules to manipulate binary data, access system functions, and request handling interpreters. These libraries allow Node.js to access files, execute system commands, and listen/respond to network requests—everything a server needs but was missing in JavaScript.
You should know three important things about programming in Node.js from a security standpoint. First, we’ll be using the V8 WebKit engine to run JavaScript. Second, the main program of Node.js will run in a single continuous loop thread. As shown in the illustration, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access