How to Check if a DOM element exists using JavaScript

How to Check if a DOM element exists using JavaScript