540 B
540 B
id, title, challengeType, videoUrl, forumTopicId
id | title | challengeType | videoUrl | forumTopicId |
---|---|---|---|---|
56bbb991ad1ed5201cd392d3 | 删除对象的属性 | 1 | https://scrimba.com/c/cDqKdTv | 17560 |
--description--
我们同样可以删除对象的属性,例如:
delete ourDog.bark;
--instructions--
删除myDog
对象的"tails"
属性。
--hints--
从myDog
中删除"tails"
属性。
assert(typeof myDog === 'object' && myDog.tails === undefined);
不要修改myDog
的初始化。
assert(code.match(/"tails": 1/g).length > 1);