JavaScript Basics: How to check for null & undefined
To check if a variable(a) has the value null, use the following code: if (a === null) // Best way
Read moreTo check if a variable(a) has the value null, use the following code: if (a === null) // Best way
Read more