RemoveProperty


Language Public

Easy  

7min

Implement the removeProperty function that takes an object and a property name and does the following:

  • If object obj has property prop, it removes the property from the object.
  • If the property has been removed, it returns true; otherwise it returns false.
ECMAScript 5.1, jQuery v1.11.0 (available as $)
 
 


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