Node.js: Code Outside the Browser / Introduction to Node.js

What is Node.js?

Node.js is an open source , cross-platform JavaScript runtime environment (not a language / framework) built on Chrome's V8 engine, allowing JS to run outside the browser .

  • open source -source code is publicly available for sharing and modification

  • cross platform - Available on Mac, Windows and Linux

  • JavaScript runtime is an environment which provides all the necessary components in order to use and run a JavaScript program .

👉Why use it:

Enables you to build servers, CLIs, APIs — all with just one language

  • Non-blocking, event-driven I/O → handles many users fast

  • Built end to end — no switching languages between frontend/backend

  • Massive ecosystem via npm (Node Package Manager)

☝️Who uses it?

  • Facebook, Netflix, Uber, LinkedIn: Because of its speed, scale, and simplicity