title: unable to call javascript function using this operator
body: <p>why this operator is not working with this javascript object</p>
  
  <pre><code>var data = {
      opt: null,
  
      ajaxCall: function () {
          //my ajax call code here
  
          this.fillDataInDiv(); //This statement is not working
          data.fillDataInDiv(); //this is working why ?
      },
  
      fillDataInDiv: function () {
          //code to fill data in div
      }
  } 
  </code></pre>
  
  <p>can someone explain, what is the difference between these two statement</p>
  
  <ol>
  <li><code>this.fillDataInDiv();  // and why this statement is not working</code></li>
  <li><code>data.fillDataInDiv();</code></li>
  </ol>