How to check for undefined in JavaScript Some progressively better ways to strictly check for undefined in JavaScript.