LearnPath

javascript · intermediate · ~8h

Notes API

GET /notes, POST /notes, DELETE /notes/:id. Validate input. Return useful status codes.

Requirements

Skills: Node.js & HTTP APIs · JavaScript fundamentals

Starter

server.js

javascript editor · loading…

javascript · sandboxed in your browser

Output

Run to see output.

Hints
  • Keep the handler logic testable without listening on a port.