This is also served to declare default values in functions.
Seemingly, the solution is:
if (myvar == undefined)
Some really old browsers don’t support undefined.
A solution is given for this:
add a global def (with no value) for undefined, e.g.
But I'd like to ask fellow posters here if it's really the right solutions.