openskills.info
Node.js Fundamentals logoCourse Preview

Node.js Fundamentals

Node.js is a runtime that executes JavaScript outside a web browser. It combines the V8 engine with operating-system APIs so programs can read files, open network connections, run command-line tools, and serve many concurrent requests.

itWeb development

Node.js Fundamentals

Node.js is an open-source, cross-platform JavaScript runtime. It embeds the V8 engine and adds APIs for files, processes, networking, timers, and other operating-system work. A Node.js program runs as an operating-system process, not inside a browser page.

That boundary matters. JavaScript supplies the language: values, functions, objects, promises, and module syntax. Node.js supplies the host environment. Browser objects such as document are absent unless a library creates an equivalent. Node.js instead exposes built-in modules such as node:fs, node:http, and node:stream.

Runtime architecture

A typical Node.js application has four cooperating layers:

  1. Your JavaScript defines application behavior and callback functions.
  2. V8 parses and executes JavaScript.
  3. Node.js bindings and built-in modules expose host capabilities to JavaScript.
  4. libuv and the operating system coordinate asynchronous I/O, an event loop, and a worker pool for selected operations.

The main JavaScript thread runs one callback at a time. Node.js can still keep many I/O operations in progress because the operating system and libuv perform or monitor work outside that callback. When an operation can continue, its callback becomes eligible to run on the event loop.

This design is concurrency, not automatic parallel JavaScript. A long calculation inside one callback prevents the event loop from starting another callback. Selected APIs use the libuv worker pool, and CPU-bound JavaScript can use worker threads, but ordinary callbacks do not receive a thread each.

Continue the course

This section is part of the paid course.

See pricing to subscribe, or log in if you already have access.

Where this skill leads

Relevant careers

See how this topic contributes to broader role-level skill maps.

Sources