JavaScript syntax: Difference between revisions

Content deleted Content added
Line 1,633:
console.log(object.attributeB); // undefined
 
delete object; // remove the whole Object (rarely used)
console.log(object.attributeA); // throws an exception
</syntaxhighlight>