title: Why do we need "var self = this" in classes in Javascript?
body: <p>Why can't we directly use <code>this</code> instead of <code>self</code> in the following example?</p>
  
  <pre><code>function SeatReservation(name, initialMeal) {
      var self = this;
      self.name = name;
      self.meal = ko.observable(initialMeal);
  }
  </code></pre>
  
  <p>After responses, I've learned:</p>
  
  <p>Yes, there is no need if there is no context switch in class.</p>
  
  <p>But I will use this approach as "convention" although there is no need. </p>