text: const { json, urlencoded } = require("express");
  const express = require("express");
  
  const port = 3000;
  
  const server = express();
  
  server.use(json());
  server.use(urlencoded({extended:true}));
  
  
  server.get('/' , (req,res)=>{
      res.setHeader("content-Type" , "text/html")
      res.sendFile(__dirname + '/index.html')
  })
  
  
  server.get('/js/validate.js' , (req,res)=>{
      res.sendFile(__dirname+'/js/validate.js');
  })
  
  
  
  server.post('/welcome' , (req,res)=>{
      const firstName = req.body.firstName;
      const lastName = req.body.lastName;
      const city = req.body.city;
      console.log(`firstName : ${firstName} , lastName : ${lastName} , city : ${city}`);
      res.sendFile(__dirname+'/welcome.html');
  })
  
  
  server.listen(port,(req,res)=>{
      console.log(`http://localhost:${port}`);
  })