title: In Javascript (when using node.js), how do you know/define the scope of variables?
body: <p>If I define something in a passed function, e.g. </p>
  
  <p><code>var name = "Whatever";</code></p>
  
  <p>Is this now accessible from other parts of the application, or is it limited? What's the logic behind defining scope in node.js javascript?</p>