Wednesday, August 3, 2011

Hello World!

  1. Type the following into a file called HelloWorld.js


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

  2. Launch your program in Node and watch in amazement:


    node HelloWorld.js