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 moreJavaScript has two sets of equality operators: === and ==. They mostly work exactly the same ie, if the operands
Read more