Most Recent Articles

June 13, 2022

How To Fix The "Property does not exist on type Window" Error in TypeScript

There are a lot of strong opinions about TypesScript. I personally love using it and typically use it in all of my personal JavaScript projects. There is a slight learning curve though, especially if you […]
By Greg Murray
June 2, 2022

How To Fix Split is Not a Function Error in JavaScript

The weakly typed nature of JavaScript is often both a blessing and a curse. It is great being able to code quickly and efficiently without having to worry about type safety. Of course, without this […]
By James LePage
May 21, 2022

How To Fix Cannot Read Property 'style' of Null in JavaScript

One of the core goals of browser-based JavaScript is to add dynamic functionality to a web page by manipulating and modifying an HTML document. In doing so, it is often important to be able to […]
By James LePage
May 12, 2022

How To Solve The Unexpected Identifier Error in JavaScript

How much code do you write? Whether the answer is a few lines here and there or hundreds of lines each day, it is always easy to create small typos or other spelling-related mistakes in […]
By James LePage
April 27, 2022

Cannot read property 'replace' of Undefined in JS

Strings in JavaScript have a wealth of helpful methods you can use to interact with or otherwise modify the contents of a string. One such method is String.prototype.replace() which lets you create a new string […]
By Greg Murray
April 21, 2022

How to get the Class Name of an Object in JavaScript

While JavaScript is not strictly typed like languages such as C# or Java, it does still have class support. Originally, working with classes was mostly done through “constructor” functions and methods added to the prototype […]
By Greg Murray
April 18, 2022

How To Fix ReferenceError require is not defined in JavaScript

When Node.js first came out in 2009, the dream of JavaScript everywhere finally became a reality for many JavaScript developers. Full-stack web developers can effectively use the same programming language for both their front and […]
By Greg Murray
April 18, 2022

How To Fix Cannot read Property '0' of Undefined in JS

Sometimes the biggest disappointment in programming is a runtime error. You spent the last few hours writing what you thought to be perfect, error-free code. No red underlining to be found in any of your […]
By Greg Murray
April 14, 2022

How To Fix ReferenceError document is not defined in JavaScript

In a previous post we discussed why and how to safely use the window object in JavaScript. If you are trying to use the document object and receiving a ReferenceError: document is not defined error […]
By Greg Murray
April 8, 2022

How To Fix is not a function Error in JavaScript

Imagine this: you’ve got your API call setup and working. The data comes back with what you expected. Now? Time to work with that data to create the solution you are looking for. All of […]
By Greg Murray
Back To Blog
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram