Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

This branch is 1 commit behind jamescarr:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

Lesson 2 - The Basics

This lesson is divided up into small portions to cover "the basics". This includes

These cover the features that you should familiarize yourself with and also covers some of the commonly used features in node.js.

Although most of these examples can be done in the REPL it might be a lot easier to run them from a file instead. Since we haven't covered that yet, running a script is easy. Create a file named anything (but for the sake of the example we'll call it helloworld.js) and put the following in it (don't feel intimidated, we'll cover these later):

console.log('hello world'); 

Save it and from the command line type node helloworld.js That's it. Go ahead and advance to section one of this lesson, Ecmascript 5.

Something went wrong with that request. Please try again.