1.6 KiB
1.6 KiB
id, title, isRequired, challengeType, videoUrl, localeTitle
id | title | isRequired | challengeType | videoUrl | localeTitle |
---|---|---|---|---|---|
af7588ade1100bde429baf20 | Missing letters | true | 5 | 遗失的信件 |
Description
Instructions
Tests
tests:
- text: <code>fearNotLetter("abce")</code>应返回“d”。
testString: assert.deepEqual(fearNotLetter('abce'), 'd');
- text: <code>fearNotLetter("abcdefghjklmno")</code>应该返回“i”。
testString: assert.deepEqual(fearNotLetter('abcdefghjklmno'), 'i');
- text: <code>fearNotLetter("stvwx")</code>应该返回“u”。
testString: assert.deepEqual(fearNotLetter('stvwx'), 'u');
- text: <code>fearNotLetter("bcdf")</code>应返回“e”。
testString: assert.deepEqual(fearNotLetter('bcdf'), 'e');
- text: <code>fearNotLetter("abcdefghijklmnopqrstuvwxyz")</code>应返回undefined。
testString: assert.isUndefined(fearNotLetter('abcdefghijklmnopqrstuvwxyz'));
Challenge Seed
function fearNotLetter(str) {
return str;
}
fearNotLetter("abce");
Solution
// solution required