编辑代码

const http = require('http');
const server = http.createServer((req, res)=>{
    res.end('hello world');
});
server.listen(3000);