← Node.js & APIs

Lesson 1 of 3 · 10 min

Your first server

Node.js runs JavaScript outside the browser, powering servers and tools.

A server listens for requests and sends responses: status codes like 200 (OK) and 404 (not found) describe results.

Practice

Sketch a server route that returns "Hello" for /hello and 404 for everything else.

Quiz

+50 pts
1. Node.js runs JavaScript…
2. 404 means…

Optional resources

Your lesson toolkit

No purchase or partner signup is required to complete this course or earn quiz points.

These are official product links, not active affiliate links. Learnly does not currently earn a commission from them.

Node.js

Install the runtime and follow the official guides.

Free and open source.

Explore tool

DigitalOcean

Explore deployment tutorials when you are ready to host an API.

Usage-based pricing; promotional credits have eligibility conditions and may require billing details.

Explore tool