const http = require('http')
const server = http.createServer( function (req, res) {
res.writeHead (200, {"constent-Type": "text/html" } )
res.end('<h1> apenas um teste </h1>')
})
const porta = 3456
server.listen(porta, function (){
console.log(`Listem port ${porta} `)
})
* Para testar o script basta rodar no seu console:
node script.js