AJAX

Step 1: Make a webpage for a chat room by creating a new file called index.html, and adding the following:
<!DOCTYPE html>
<html>

<head>
  <title>Chat Room</title>
</head>

<body>
  <h1>Chat Room</h1>
</body>

</html>
Go to index.js, and replace response.send with:
response.sendFile(`${__dirname}/index.html`)
The built-in variable __dirname is used to get the full path to the file. Stop and run the app, and you should see the webpage.
Last section Next step