Are ES6 classes just syntactic sugar for the prototypal pattern in Javascript?
<p>After playing with ES6, I've really started to like the new syntax and features available, but I do have a question about classes.</p>
<p>Are the new ES6 classes just syntactic sugar for the old prototypal pattern? Or is there more going on here behind the scenes? For example:</p>
<pre><code>class Thing {
   //... classy stuff
  doStuff(){}
}
</code></pre>
<p>vs:</p>
<pre><code>var Thing = function() {
  // ... setup stuff
};

Thing.prototype.doStuff = function() {}; // etc
</code></pre>