Skip to content

Instantly share code, notes, and snippets.

@jacksoncharles
Created September 7, 2013 16:58
Show Gist options
  • Save jacksoncharles/6477232 to your computer and use it in GitHub Desktop.
Save jacksoncharles/6477232 to your computer and use it in GitHub Desktop.
node.js hello world webserer
var http = require("http");
http.createServer(function(request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
response.write("Hello World");
response.end();
}).listen(8888);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment