Definition and Usage
The undefined property indicates that a variable has not been assigned a value.
The undefined property is supported in all major browsers.
Test if variables are undefined:
alert("t1 is undefined");
alert("t2 is undefined");
The output of the code above will be:
t2 is undefined
Try it yourself »
Thank You For Helping Us!
Your message has been sent to W3Schools.