how to access variables within the Objects
<p>I'm creating an object with multiple functions.. i.e.:</p>

<pre><code>var test = {

   setA: function(){
     console.log(a)
   }

   endB: function(){
     console.log(a)
   }

}
</code></pre>

<p>How do I declare variable a so that it can only be accessed in the test object and every function within that the object? and is there anything unique about accessing it than other variables?</p>

<p>I know I can declare a global variable but would rather avoid doing that.</p>
