foods对象。如果我们想移除apples属性,我们可以使用delete关键字:
```js
delete foods.apples;
```
foods中的oranges、plums和strawberries属性。
foods对象应该只含有 3 个键:apples、grapes和bananas。
testString: 'assert(!foods.hasOwnProperty(''oranges'') && !foods.hasOwnProperty(''plums'') && !foods.hasOwnProperty(''strawberries'') && Object.keys(foods).length === 3);'
- text: 你应该用delete关键字来移除oranges、plums和strawberries属性。
testString: assert(code.search(/oranges:/) !== -1 && code.search(/plums:/) !== -1 && code.search(/strawberries:/) !== -1);
```