Category Archives: JavaScript

JavaScript Error Handling

JavaScript Errors – Invalid Array Sort Argument TypeError

Today in the continued journey through our JavaScript Error Handling series we’ll be exploring the Invalid Array Sort Argument TypeError. The Invalid Array Sort Argument TypeError is thrown by the Firefox JavaScript engine in a very specific situation: When the argument passed to the Array.prototype.sort() method isn’t a valid function…. continue reading →

JavaScript Error Handling

JavaScript Errors – SyntaxError: unterminated string literal

Moving along through our JavaScript Error Handling series, today we’ll take a closer look at the Unterminated String Literal SyntaxError. JavaScript requires that string literals be enclosed in quotations, whether that be single (‘) or double (“) quotes. The Unterminated String Literal error is thrown when when a string is… continue reading →