WebServer: Creating a web server locally using Express.js Here's the code : After writing the code, run this command: Now navigate to the port in your browser and you should see this: Finally Try navigating to different routes such as 'page1' and 'page2'