When I run from the browser
typeof undefined
I got "undefined"
string. That is why? Most of the time I check my variable something like
if (a == 'undefined') {
do something
}
is I am checking my variable a is equal to undefined? I don't understand about that. Can someone explain me? Another way to check undefined in javascript?