title: What is the difference between throw Error and console.error
body: <p>What is the difference between these two statements, and is there a good reason to use one over the other?</p>
  
  <pre><code>throw Error("msg");
  console.error("msg");
  </code></pre>
  
  <p>In my limited experience, I've only really seen <code>throw Error()</code> used.  Is there any particular reason why?</p>
  
  <p>Also, is there an equivalent to <code>console.warn()</code> in the same fashion?</p>