title: Javascript - difference between namespace vs. closure?
body: <p>In Javascript, what's the difference between a namespace and a closure?  They seem very similar to me.</p>
  
  <p><em>EDIT</em></p>
  
  <p>Specifically, <a href="https://sparecycles.wordpress.com/2008/06/29/advanced-javascript/">this article</a> discusses namespaces and closures, and has sentences like </p>
  
  <blockquote>
    <p>Now, we’re still going to have situations where we’ll want to declare
    variables that don’t naturally fit into a namespaced object
    structure. But we don’t want those variables to have a global scope. This is where
    self-invoking functions come in.</p>
  </blockquote>
  
  <p>It goes on to give what looks a lot like a closure, as an "object namespace".  It looks to me like the namespace IS a <a href="http://www.jibbering.com/faq/notes/closures/">closure</a>...but maybe it's not...? Help?</p>