Responding to Requests

Let's cover methods for responding to requests on a web server.

The main job of a web server is to respond to HTTP requests. Here’s the JavaScript code for a minimal Express-based web server that returns “Hello from Express!” for a request to the root URL.

Get hands-on with 1200+ tech skills courses.