Category Archives: JavaScript Error Handling

JavaScript Error Handling

JavaScript Error Handling – ReferenceError: assignment to undeclared variable “x”

Today as we progress through our JavaScript Error Handling series we’re going to take a closer look at the Assignment to Undeclared Variable error in all its magnificent glory. The Assignment to Undeclared Variable error crops up anytime code attempts to assign a value to a variable that has yet to be declared (via the var keyword). Below… continue reading →

JavaScript Error Handling

JavaScript Error Handling – RangeError: radix must be an integer

Next on the docket for our continued dive into the JavaScript Error Handling series is the Invalid Radix error. The Invalid Radix error occurs in a specific instance, when the toString() method of a Number object in JavaScript is called, and it includes an invalid passed parameter representing the radix (or base) with which to convert the number to a string. Below we’ll examine… continue reading →

JavaScript Error Handling

JavaScript Error Handling – RangeError: Precision is out of range

Today, as we continue along through our in-depth JavaScript Error Handling series, we’re going to take a look at the ‘Precision is out of range’ error. The Invalid Precision error will occur anytime a number object is provided an invalid numeric value for one of the precision-based JavaScript methods, which we’ll explore more below. In this… continue reading →

JavaScript Error Handling

JavaScript Error Handling – RangeError: invalid array length

Moving right along with our JavaScript Error Handling series, we next come to the Invalid Array Length error. The Invalid Array Length error pops up anytime, as the name implies, an Array object is created with a length value that is negative or larger than the allowed maximum. Below we’ll examine what causes an Invalid Array Length error, as well… continue reading →

JavaScript Error Handling

JavaScript Error Handling – RangeError: argument is not a valid code point

Plowing straight ahead through our JavaScript Error Handling series, today we’ll be exploring the fun world of the Invalid Code Point error. Below we’ll examine what causes an Invalid Code Point error, followed by how to capture and handle this error. Off we go! The Technical Rundown All JavaScript error objects are descendants of the Error object, or… continue reading →

JavaScript Error Handling

JavaScript Error Handling – InternalError: too much recursion

Today in our continued journey through our JavaScript Error Handling series, we’re examining the InternalError object known as the Recursion error. Below we’ll explore the cause of a Recursion error in JavaScript, as well as how to manage and avoid this error in your own projects, so let’s begin! The Technical Rundown All JavaScript error objects are descendants… continue reading →