const http = require('http'); const server = http.createServer((req, res) => { res.writeHead(200, { 'Content-Type': 'text/html; charset=utf-8' }); res.end('
node ' + process.version + '
'); }); server.listen(3000, () => console.log('listening on 3000'));