title: What is use of named or unnamed class expression in ES6?
body: <p>In the code I am using a named class "Car". Now if I try to use like <code>var carNew = new Car("ferrari");</code>, then it's throwing me an error. <strong>So what is the use of named class expression in ES6?</strong></p>
  
  <pre><code>'use strict';
  var car = class Car{
    constructor(model){
          this.model = model;
      }
  }
  var carNew = new car("ferrari");
  
  console.log(carNew); //car {model: "ferrari"}
  console.log(carNew.constructor == car); //true
  </code></pre>