View on GitHub

reading-notes

CodeFellows Class Reading Notes

An Introduction to Node.js

Per the project’s homepage:

Node.js is a JavaScript runtime built on Chrome’s V8 JavaScript engine

According to Stack Overflow:

Node.js is an event-based, non-blocking, asynchronous I/O runtime that uses Google’s V8 JavaScript engine and libuv library.

At it’s simplest, this all means that Node.js is a program we can use to execute JavaScript on our computers (a JavaScript runtime).

Node comes bundled with a package manager called npm.

Together, Node and npm are used to build various tools - npm installs them and then Node runs them.

The Node.js Execution Model

Whereas traditional servers spawns a new thread for every request (which can cause systems to become sluggish or crash), Node.js is single-threaded and event-driven, meaning it can implement asynchronous behavior.

Advantages of Node.js


Home