Description
The undefined property indicates that a variable has not been assigned a value.
Examples
The following example shows the basic use of this property.
<script>
var empty;
if (empty == undefined)
{
document.write("empty is undefined");
}
</script>
This produces the following result:
Browser Support
Firefox | IE | Chrome | Opera | Safari |
---|---|---|---|---|