Follow along in Workspaces: http://w.trhou.se/i4f56np1ya
Check out Treehouse Courses on Node!
In node, "this" in a normal function results in being global to the MODULE, not to the application. You can read more here.
From the docs, "In browsers, the top-level scope is the global scope. That means that in browsers if you're in the global scope var something will define a global variable. In Node this is different. The top-level scope is not the global scope; var something inside a Node module will be local to that module."
REPL: pronounced rep-ul, stands for Read-Evaluate-Print-Loop.
You need to sign up for Treehouse in order to download course files.Sign up