Working with null and undefined in JavaScript
Jul 28, 2017 · 3 min read
JavaScript is a nice language and a good starting point for beginners to learn programming. So here is a tutorial of a simple task: How do you work with null and undefined?
A simple Google search gives you answer as simple as this:
if (x === undefined || x === null) {
// these statements execute
}However, this is very 2000. In the modern JS world, we use smaller packages to compose a larger program. Here are some packages for you to do the complicated job.
