title: What happens with "var" variables inside a JavaScript Constructor?
body: <p>example:</p>
  
  <pre><code>function Foo() {
      this.bla = 1;
      var blabla = 10;
      blablabla = 100;
      this.getBlabla = function () { 
          return blabla; // exposes blabla outside
      }
  }
  
  foo = new Foo();
  </code></pre>
  
  <p><strong>original question:</strong></p>
  
  <p>I know that <code>bla</code> will be assigned to every instance of Foo.
  What will happen with <code>blabla</code>? </p>
  
  <p><strong>new question:</strong></p>
  
  <p>what I understand now:</p>
  
  <pre><code>this.bla = 1;     // will become an attribute of every instance of FOO.
  var blabla = 10;  // will become a local variable of Foo(**not** an attribute of every    instance of FOO), which could be accessed by any instance of FOO only if there's a method like "this.getBlabla".
  blablabla = 100;  // will define a **new** (or change if exist) global(window) variable.
  </code></pre>
  
  <p><strong>[Question:]</strong> Did i understand correctly?</p>