title: How to run console.log in constuctor in TypeScript?
body: <p>As the title says, I can't run console.log from constructor. There's no compiler error. When the compiled code runs in the browser, there is nothing written in the console. No error and not "Hello World".</p>
  
  <p>Here is the code:</p>
  
  <pre><code>class C {
      constructor() {
          console.log("Hello World");
      }
  }
  </code></pre>
  
  <p>When the class and constructor are removed, it works.</p>