If I try to change "
const express = require("express");
const app = express();
app.get("/currenttime", function (request, response) {
response.send("<h1>" + new Date().toDateString() + "</h1>");
}); // localhost:3000/currenttime
app.get("/", function (request, response) {
response.send("<form><label>Your Name</label><input type='text'></form>");
}); //localhost:3000/
app.listen(3000);
You need to add closing tag for your input element.
const express = require("express");
const app = express();
app.get("/currenttime", function (request, response) {
response.send("<h1>" + new Date().toDateString() + "</h1>");
}); // localhost:3000/currenttime
app.get("/", function (request, response) {
response.send("<form><label>Your Name</label><input type='text' / ></form>");
}); //localhost:3000/
app.listen(3000);