Skip to content
Learn Netverks

Lesson

Step 19/36 53% through track

express-intro

Express introduction

Last reviewed Jun 1, 2026 Content v20260601
Track mode
nodejs_server
Means
Node sandbox
Reading
~1 min
Level
beginner

This lesson

An orientation to the Node.js track—how the server playground works, core vocabulary, and what you will practice next.

You need a clear map of the Node.js track so the event loop, modules, and server runtime do not feel like magic.

You will apply Express introduction in contexts like: REST APIs, webhooks, and BFF layers behind React or mobile clients.

Run JavaScript on the Node runner when configured—never mix arbitrary shell commands in lessons. Also read the interview prep blocks.

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

Express is a minimal web framework for Node—routing, middleware, and helpers on top of http.createServer. It is the most common starting point before Nest, Fastify, or Hono.

Conceptual Hello Express

import express from 'express';
const app = express();

app.get('/', (req, res) => {
  res.send('Hello');
});

app.listen(3000);

Compared to raw http

Raw httpExpress
Manual URL parsingapp.get('/users/:id')
Manual body parsingexpress.json() middleware
Manual status/headersres.json(), res.status()

Playground note

Express is not installed in the runner—study the API here, then scaffold locally with npm init and npm install express. The editor compares the same route with built-in http.

Important interview questions and answers

  1. Q: What problem does Express solve?
    A: Repetitive HTTP plumbing—routing, middleware chains, content negotiation—so handlers focus on business logic.
  2. Q: Express vs Fastify?
    A: Fastify emphasizes performance and schema validation; Express has the largest tutorial/community footprint.

Self-check

  1. What sits underneath Express?
  2. What does express.json() middleware do?

Interview prep

What is middleware?

Functions with (req, res, next) that run in order—auth, logging, body parsing—calling next() passes control to the next layer.

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

  • Express vs raw http?
  • Middleware order matter?

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