A programmer should use a language as a tool, always taking advantage of language-specific data types and built-in functions.
Public questions (free account) are common interview questions. They are great for practicing, or if you want to filter candidates using the classic problems.
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.
- Property removed: Wrong answer
- Correct return value: Wrong answer