Creating response

Report a typo

Look at the code below. We want to send back a simple response that will contain only one word, "JS".

So you need to write that response. To do that, write the code that will do that.

// importing module ...

const server = http.createServer((request, response) => {

	/* Your answer here */

	response.end();
});

// server listening ...
Enter a short text
___

Create a free account to access the full topic