JavaScript syntax: Difference between revisions

Content deleted Content added
No edit summary
Line 158:
</syntaxhighlight>
 
Here, calling <code>isUndefined(my_var)</code> raises a {{mono|ReferenceError}}, if {{mono|my_var}} is an unknown identifier, whereas <{{code>|lang=javascript|code=typeof my_var === 'undefined'</code>}} doesn't.
 
===Null===