title: Date.getTime is not a constructor
body: <p>In a function I have the line:</p>
  <pre><code>const currentTime = new Date.getTime();
  </code></pre>
  <p>The code compiles just fine.
  Also, <a href="https://eslint.org/" rel="nofollow noreferrer">ESLint</a> displays neither warnings or
  errors.<br />
  But when I run the code, I get an alert box giving the confusing
  message <code>Date.getTime is not a constructor</code>.</p>
  <p><em>What is wrong here?</em></p>
  <p><a href="https://i.imgur.com/qXHDzzv.png" rel="nofollow noreferrer" title="Error message: 'Date.getTime is not a constructor'"><img src="https://i.imgur.com/qXHDzzv.png" alt="Error message: 'Date.getTime is not a constructor'" title="Error message: 'Date.getTime is not a constructor'" />
  </a></p>
  <hr />
  <p>I have noticed that there is no error if I don't call the function
  that contains the line above.</p>
  <p>The following Stack Snippet reproduces the error.</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function rightNow() {
    const currentTime = new Date.getTime();
    return currentTime;
  }
  console.log(rightNow().toString());
  // ^^ No error if I comment out the previous line! ^^</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.as-console-wrapper { max-height: 100% !important; top: 0; }</code></pre>
  </div>
  </div>
  </p>