Use the strict inequality (! ==) operator to check if a variable is not null – myVar !== null . The strict inequality operator will return true if the variable is not equal to null and false otherwise.
Use the strict inequality (! ==) operator to check if a variable is not null – myVar !== null . The strict inequality operator will return true if the variable is not equal to null and false otherwise.