title: Why throw an Error object instead of something else?
body: <p>In Mozilla's explanation of <a href="https://developer.mozilla.org/nl/docs/Web/JavaScript/Reference/Statements/throw" rel="nofollow noreferrer">throw</a> it is explained that <code>throw</code> accepts an expression. Usually you see <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error" rel="nofollow noreferrer">error</a> objects being thrown on exceptions, so I was wondering if there are any downsides to throwing something else (like a string or number) instead of an error object.</p>