Category Archives: JavaScript Error Handling

JavaScript Error Handling

JavaScript Error Handling – SyntaxError: missing } after property list

Today, as we move along through our JavaScript Error Handling series, we’ll be examining the Missing Brace After Property List JavaScript error. As the name implies, the Missing Brace After Property List error is another in the line of SyntaxErrors, which occurs specifically when initializing properties of an Object where… continue reading →

JavaScript Error Handling

JavaScript Error Handling – SyntaxError: missing ; before statement

As we march along through our JavaScript Error Handling series, today we’ll be parading our way through the Missing Semicolon Before Statement JavaScript error. As the name implies, the Missing Semicolon Before Statement error is typically thrown when a semicolon (;) was forgotten somewhere in the code. In this article… continue reading →

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 →