why is class a reserved word in JavaScript?
<p>I am planning to implement class inherit interface using JavaScript. <code>class</code> is the perfect word as the name of the constructor.</p>

<pre><code>class = function (classname) {}; // create a class with classname
classA = new class("classA"); // create a class named classA
</code></pre>

<p>Unfortunately, <code>class</code> is a reserved word in JavaScript.</p>

<p>Why does JavaScript reserve the word <code>class</code> (since it never uses it)?</p>
