KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In my code, I see this: if (document.getElementById('xx') !=null) { //do stuff } if xx element is not defined, will this evaluate to true or false? Should I write: if (document.getElementById('xx')) to be safe?
Tags (comma-separated)
Save Edits
Cancel