var http = require("http");
http.createServer(function(request, response) {
response.writeHead(200, {"Content-Type": "text/html"});
response.write("Hola Mundo");
response.end();
}).listen(8888);
Node.js:
node server.js
http://localhost:8888/
node server.js
http://localhost:8888/
1 Response
https://github.com/luisenriquecorona/Node.js/blob/master/server.js
Write a comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.