I'm still having some trouble understanding the scope of variables inside a node.js app. In regular javascript a nested function has access to the variables of it's parents. In node, this doesn't seem the case.
Here i have the file app.js that has a variable 'bookies' and a require 'routes'. The trouble i'm having is that the variable 'bookie' is not available in my routes.js file.
Why is that?
