Category Archives: JavaScript Error Handling

JavaScript Error Handling

JavaScript Error Handling: SyntaxError: missing ) after argument list

Continuing through our JavaScript Error Handling series, today we’ll be looking closely at the Missing Parenthesis After Argument List JavaScript error. The Missing Parenthesis After Argument List error can occur for a variety of reasons, but like most SyntaxErrors, it commonly pops up when there’s a typo, an operator is… continue reading →

JavaScript Error Handling

JavaScript Error Handling – SyntaxError: “x” is not a legal ECMA-262 octal constant

Continuing right along through our JavaScript Error Handling series, today we’ll be taking a closer look at the Invalid Octal Constant warning. The Invalid Octal Constant warning is quite unique in the realm of all the JavaScript errors we’ve explored thus far, because it only appears in two very specific instances: when defining an octal literal value of 08 or 09…. continue reading →

JavaScript Error Handling

JavaScript Error Handling: SyntaxError: “use strict” not allowed in function with non-simple parameters

Delving deeper into the misty (and mysterious) mountains of JavaScript Error Handling, we’ve come upon the frightening and dangerous lair of the beast known as the Invalid Strict with Complex Parameters error! [INSERT TERRIFIED SCREAMS]. The Invalid Strict with Complex Parameters error rears its ugly head anytime strict mode is enabled within a function that contains any… continue reading →

JavaScript Error Handling

JavaScript – ReferenceError: reference to undefined property “x”

Today, as we continue through the next thrilling segment in our JavaScript Error Handling series, we’re examining the Reference to Undefined Property error with a fine-toothed comb. The Reference to Undefined Property error can only appear when strict mode is enabled, and will occur when the code attempts to access an object property that simply doesn’t exist. Below… continue reading →

JavaScript Error Handling

JavaScript – ReferenceError: invalid assignment left-hand side

Next on the list in our extensive JavaScript Error Handling series we’re going to examine the Invalid Left-Hand Assignment error in greater detail. The Invalid Left-Hand Assignment error is a sub-object of ReferenceError and is thrown, as the name implies, when code attempts to perform an invalid assignment somewhere. In this post we’ll look at a few… continue reading →

JavaScript Error Handling

JavaScript – ReferenceError: deprecated caller or arguments usage

Today as we progress through our JavaScript Error Handling series we’re going to take a dive into the Deprecated Caller/Deprecated Arguments error in all its magnificent glory. The Deprecated Caller/Deprecated Arguments error appears when code attempts to call one of two specific properties of a function while strict mode is enabled: Function.caller or Function.arguments. Below we’ll go over a few code… continue reading →

JavaScript Error Handling

JavaScript Error Handling – RangeError: repeat count must be non-negative

As we stroll our way down the winding path of our JavaScript Error Handling series, today we’re stopping to smell the aroma of the Negative Repeat Count error. The Negative Repeat Count error, similar to the Infinite Repeat Count error, occurs when using the repeat() method of a String object in JavaScript, but in this case when the count parameter passed to that method… continue reading →

JavaScript Error Handling

JavaScript Error Handling – RangeError: repeat count must be less than infinity

Today as we plow ahead through our JavaScript Error Handling series we’re going to be tackling the Infinite Repeat Counterror. The Infinite Repeat Count error occurs during the use of the repeat() method of a String object in JavaScript, and specifically when the count parameter passed to that method is too large. Below we’ll take a look at a few specific… continue reading →