JavaScript Mistakes — null vs undefined, Constructors, and Scopes

John Au-Yeung
Level Up Coding
Published in
5 min readJan 23, 2020

--

Photo by André Wasserberg on Unsplash

JavaScript is a language that’s friendlier than many other programming languages in the world. However, it’s still very easy to make mistakes when writing JavaScript code through misunderstanding or overlooking stuff that we already know. By avoiding some of the mistakes below, we can make our lives easier by preventing bugs and typos in our code that bog us down with…

--

--