title: How to create private variables within a namespace?
body: <p>For my web application, I am creating a namespace in JavaScript like so:</p>
  
  <pre><code>var com = {example: {}};
  com.example.func1 = function(args) { ... }
  com.example.func2 = function(args) { ... }
  com.example.func3 = function(args) { ... }
  </code></pre>
  
  <p>I also want to create "private" (I know this doesn't exist in JS) namespace variables but am not sure what's the best design pattern to use.</p>
  
  <p>Would it be:</p>
  
  <pre><code>com.example._var1 = null;
  </code></pre>
  
  <p>Or would the design pattern be something else?</p>