Author: Greg Murray

I’m a passionate and driven web developer with an eye for design and appreciation for the human aspect of technology. I am experienced with building websites for small to medium businesses or large web applications for big businesses. Websites can be custom made using cutting edge technology and responsive design or created using the website builder of your choice.
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
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
April 8, 2022

How To Solve ReferenceError window is not defined in JavaScript

JavaScript is a programming language with the sole purpose of allowing developers to add interactivity to web pages. At least, that was its sole purpose. Until Node.js came out. That brought JavaScript out from under […]
By Greg Murray
April 7, 2022

How to Check if an Object is Empty in JavaScript

One thing that is enjoyable about writing JavaScript code is how simple it is to create and use objects. There are so many creative uses for these objects beyond simply storing and retrieving keyed values. […]
By Greg Murray
April 6, 2022

How to convert Map Values to an Array in JavaScript

JavaScript has many lesser known yet useful features. One such feature is the Map object. Introduced as part of the ECMAScript 2015 (ES6) specification (and not to be confused with the method), the Map […]
By Greg Murray
Back To Blog
linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram