Skip to content

Commit

Permalink
First simple examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ajlopez committed Dec 18, 2011
0 parents commit 2e1f355
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Simple/hello.js
@@ -0,0 +1,3 @@

console.log("Hello, World");

7 changes: 7 additions & 0 deletions Simple/helloasync.js
@@ -0,0 +1,7 @@

setTimeout(function() {
console.log("World");
}, 2000);

console.log("Hello ");

9 changes: 9 additions & 0 deletions Simple/http.js
@@ -0,0 +1,9 @@

var http = require('http');

http.createServer(function (req, res) {
res.writeHeader(200, {'Content-type': 'text/plain'});
res.write('Hello ');
res.end('World');
}).listen(8000);

0 comments on commit 2e1f355

Please sign in to comment.