title: Why is subclass [class (anonymous)]
body: <p>Given the example below, could someone please advise why is my C class show as anonymous? I'm trying to validate the instanceOf B.C and it's always false :(</p>
  <p>Thank you in advance.</p>
  <pre><code>class A {
   constructor() {
     this.a = 1
   }
  };
  
  class B extends A {
   constructor() {
     super();
     this.a = 2;
   }
  }
  
  B.C = class extends B {
   constructor() {
     super();
     this.a = 3;
   }
  }
  
  console.log(A, B, B.C) //[class A], [class B extends A], [class (anonymous) extends B]
  
  let test = new B.C();
  console.log(test instanceof B.C) //false
  console.log(test.constructor.name) //''
  </code></pre>