title: When to use this in javascript OO?
body: <p>In Javascript OO, when should I use the <code>this</code> keyword?</p>
  
  <p>Also, if I want to call a method of a class from another method of the same class, should I use <code>this</code> or just the name of the function? E.g is this correct?</p>
  
  <pre><code>function Foo()
  {
     this.bar= function()
     {
        alert('bar');
     }
  
     this.baz= function()
     {
       this.bar(); //should I use this.bar() or just bar()?
     }
  }
  </code></pre>