typeof
string
<script> try { throw 'error'; } catch(e) { alert(typeof e); } </script>
JSError
throw
Error