Remove Property

JavaScript Language Public



Implement the removeProperty function which takes an object and property name, and does the following:

If the object obj has a property prop, the function removes the property from the object and returns true; in all other cases it returns false.

ECMAScript 6

  •   Property removed: Wrong answer
  •   Correct return value: Wrong answer