KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I know that below are the two ways in JavaScript to check whether a variable is not null , but I’m confused which is the best practice to use. Should I do: if (myVar) {...} or if (myVar !== null) {...}
Tags (comma-separated)
Save Edits
Cancel