title: What is use of self in jquery/ javascript?
body: <p>In javascript they are using like:</p>
  
  <ul>
  <li><code>var self=this;</code></li>
  <li><code>var jquery_element= $(html_element);</code>           </li>
  <li><code>self.jquery_element=jquery_elemnet</code></li>
  </ul>
  
  <p>Why do we use these in javascript. I got this code from <a href="https://github.com/openstack/horizon/blob/stable/kilo/horizon/static/horizon/js/horizon.d3linechart.js#L201-207" rel="noreferrer">OpenStack horizon</a></p>