...

/

Challenge: Creating a Web Server

Challenge: Creating a Web Server

Learn to create a web server in Node.js by displaying text on the browser using the HTTP module.

Challenge description

In this challenge, we’ll use the HTTP module in Node.js to create a server. We’ll use the createServer() method, which helps us execute the request. The exercise will be implemented by taking the following steps:

  • Step 1: Import the HTTP module. ...