HTTP servers listen for requests from browsers or other clients and send back responses like web pages or data. This is how websites and web apps work.
The server listens for requests, processes them, and sends back responses so the browser can show the web page or data.
const http = require('http');
// Choose the correct server creation code belowOption C correctly sets the status code with writeHead and ends the response with the message. Option C misses the status code. Option C uses a method not available on the response object. Option C does not end the response, so the client waits forever.
The response must be ended with res.end() to tell the browser the message is complete. Without it, the browser waits forever.
The variable count increments with each request, so the third request gets the value 3.
