What is the difference between `throw 'foo'`, `throw Error('foo')`, `throw new Error('foo')`?
What is the difference between `throw new Error` and `throw someObject`?
Difference between foo() and function() { foo(); } How to throw error in Post Pass values throw Ajax to a php file foo || (foo = this.foo) what does it do? Javascript on throw event? Why doesn't {var foo = foo} throw a ReferenceError? Difference var foo and var $foo throw syntax in Javascript Why do functions that throw exception not pass with function_name.should.throw(error)? What is the difference between throw Error and console.error Javascript will not throw a new Error Do I need to `return` after `throw` in JavaScript? Access to object and set it null throw element of array Difference between 'var foo = function ...' and 'function foo() ...' Use coffeescript/javascript 'throw error' or 'throw new Error(error)'? What is the difference between new Foo and new Foo() in javascript? How to test throw new error JavaScript Difference between Object.create(foo) and new Object(foo)? Error throw for date in javascript Jquery throw only one action js difference between foo(), foo and function(){foo()} What is the point of "throw"? Difference between var foo = function(){...}() and var foo = (function(){...}()) var foo = foo || alert(foo); Difference between if (x) { foo(); } and x ? foo() : 0; Javascript - Is there a difference between this.foo and this.prototype.foo Throw Alert Message on Asp.net Application not working Difference between <script src="foo.js"></script> and <script src="foo.js"/>? Difference between a == 'foo' and 'foo' == a in javascript