undefined is a global property (variable) with a constant value. Javascript treats undefined as being equal to null.
Sample code
<html>
<body>
<script type="text/javascript">
var test;
if (test==null)
{
alert("null");
}
if (test==undefined)
{
alert("undefined");
}
</script>
</body>
</html>
Friday, June 5, 2009
Thursday, June 4, 2009
Tuesday, June 2, 2009
Monday, June 1, 2009
Subscribe to:
Posts (Atom)