JavaScript handler.deleteProperty() MethodThe handler.deleteProperty() method used to remove the property entirely using the delete operator. This method returns true if the delete was successful. SyntaxParametersTarget: The target object. Property: The name of the property to delete. Return valueThis method returns a Boolean value. It indicates that property successfully deletes or not. Browser Support
Example 1Test it NowOutput: Called: abc Example 2Test it NowOutput: In delete Property undefined Example 3Test it NowOutput: true false true
Next TopicJavaScript handler
|