Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Misc

  • Loading branch information...
commit 44f30a28a4b3402a6fc27355d0baa49d423502f3 1 parent 2da3fcd
TJ Holowaychuk authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/http-hello-world/app.js
5 src/http-hello-world/app.js
View
@@ -1,10 +1,9 @@
-var sys = require('sys'),
- http = require('http');
+var http = require('http');
http.createServer(function(req, res){
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('Hello World\n');
}).listen(3000);
-sys.puts('Server running at http://127.0.0.1:3000/');
+console.log('Server running at http://localhost:3000/');
Please sign in to comment.
Something went wrong with that request. Please try again.