#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);
@MaBe started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
#12 has a typo: res.write should be res.end