title: JavaScript's classes: toString() method
body: <p>Is there anything in the spec that defines a toString() method for classes?</p>
  
  <p>For example, let's say I define this class:</p>
  
  <pre><code>class Foo {
    constructor() {
      console.log('hello');
    }
  }
  </code></pre>
  
  <p>If I called <code>Foo.toString()</code>, I'm not sure if I'll get:</p>
  
  <pre><code>class Foo {
    constructor() {
      console.log('hello');
    }
  }
  </code></pre>
  
  <p>Or perhaps the constructor function, anonymous:</p>
  
  <pre><code>function() {
    console.log('hello');
  }
  </code></pre>
  
  <p>Or maybe the constructor function, but it's named: </p>
  
  <pre><code>function Foo() {
    console.log('hello');
  }
  </code></pre>
  
  <p>Or maybe just the class name:</p>
  
  <p><code>Foo</code></p>