JavaScript handler.deleteProperty() Method

The handler.deleteProperty() method used to remove the property entirely using the delete operator. This method returns true if the delete was successful.

Syntax

Parameters

Target: The target object.

Property: The name of the property to delete.

Return value

This method returns a Boolean value. It indicates that property successfully deletes or not.

Browser Support

Chrome49
Edge12
Firefox18
Opera36

Example 1

Test it Now

Output:

Called: abc

Example 2

Test it Now

Output:

In delete Property undefined 

Example 3

Test it Now

Output:

true false true





Latest Courses