Skip to content
Learn Netverks

Lesson

Step 2/36 6% through track

what-is-nodejs

What is Node.js?

Last reviewed May 28, 2026 Content v20260528
Track mode
nodejs_server
Means
Node sandbox
Reading
~2 min
Level
beginner

This lesson

This lesson teaches What is Node.js?: the syntax, APIs, and habits you need before advancing in Node.js.

Teams ship What is Node.js? on every Node.js codebase—skipping it leaves gaps in debugging and code reviews.

You will apply What is Node.js? in contexts like: REST/GraphQL APIs, BFF layers, CLIs, webhooks, and real-time services (with WebSockets).

Run JavaScript on the Node runner when configured—never mix arbitrary shell commands in lessons.

After HTML fundamentals and basic programming concepts—before or alongside SQL.

Node.js is a JavaScript runtime—not a framework and not a language. It embeds V8, adds system APIs (file system, networking, child processes), and ships with npm, the largest open-source package registry for reusable libraries.

Core characteristics

  • Single-threaded event loop — one main thread handles JS; I/O delegates to the OS and resumes via callbacks/promises
  • Non-blocking I/O by default — suited for many concurrent connections when work is I/O-bound
  • Same language as the browser — share types, utilities, and sometimes code between client and server
  • Huge ecosystem — Express, Fastify, NestJS, Socket.io, build tools (Vite, webpack), and countless utilities

Who uses Node.js?

Netflix, PayPal, LinkedIn, and countless startups use Node for APIs and BFF (backend-for-frontend) layers. It excels at JSON APIs, serverless functions, and tooling—not every workload (heavy CPU crunching may prefer Go, Rust, or worker threads).

Important interview questions and answers

  1. Q: Is Node.js a programming language?
    A: No—it is a runtime that executes JavaScript. The language is ECMAScript; Node adds server APIs and the event loop implementation.
  2. Q: Why was Node created?
    A: To bring non-blocking, event-driven I/O to server JavaScript—fewer threads blocked waiting on disk or network compared to classic thread-per-request servers for many workloads.
  3. Q: Node vs Deno/Bun?
    A: Deno and Bun are alternative JS runtimes with different security defaults and tooling; Node remains the default for npm compatibility and hiring breadth.

Self-check

  1. What engine executes JavaScript inside Node?
  2. Name two things Node is commonly used for.

Interview prep

Who created Node.js and why?

Ryan Dahl (2009) wanted non-blocking I/O for web servers—JavaScript's event-driven model fit async network work better than thread-per-request models for many I/O-heavy workloads.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Playground

Runs on the configured server runner (dev: npm run runner with LEARNING_RUNNER_ENABLED=true). Output appears below the editor.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • V8 vs Node?
  • Single-threaded meaning?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump