O'Reilly logo
  • Ahmed Elgendy thinks this is interesting:

The delete expression returns true if the property was deleted successfully. delete will return false only if it can’t delete a property (which could happen for, say, a protected object that belongs to the browser). It will return true even if the property you’re trying to delete doesn’t exist in the object.


Cover of Head First JavaScript Programming


What does "delete" return?