Javascript check if undefinded

JavaScript
if (typeof myVariable === 'undefined'){
    //myVariable is undefined
}
Source

Also in JavaScript: