• #12 has a typo: res.write should be res.end

    var http = require("http");
    var server = http.createServer(function (req, res) {
      console.log("connect...");
      res.writeHead(200);
      res.end('<html><body><H1>Hello World</H1></body></html>');
    });
    
    server.listen(8080);
    
About

Avatar for MaBe @MaBe started