How can I remove properties from JavaScript objects?
Learn how to erase JavaScript properties using the delete method, or convert the property to “undefined.”
You’ve defined a variable as the property of an object, but now you want to get rid of it. In this video Craig Buckler teaches novice JavaScript developers how to perform this essential operation, beginning with the basics of object creation. Learn how to erase your property using JavaScript’s delete command or, for more complex objects, convert the property to “undefined.” Beginners can follow along easily as Buckler demonstrates each option using jsconsole.com.