* fix: broken Read-search-ask link now point to correct url * fix: changed link to original forum link with more views * fix: changed http links to correct version * fix: link in help modal
1.9 KiB
1.9 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", "<code>fearNotLetter("abce")</code> should return "d".");'
- text: <code>fearNotLetter("abcdefghjklmno")</code>应该返回“i”。
testString: 'assert.deepEqual(fearNotLetter("abcdefghjklmno"), "i", "<code>fearNotLetter("abcdefghjklmno")</code> should return "i".");'
- text: <code>fearNotLetter("stvwx")</code>应该返回“u”。
testString: 'assert.deepEqual(fearNotLetter("stvwx"), "u", "<code>fearNotLetter("stvwx")</code> should return "u".");'
- text: <code>fearNotLetter("bcdf")</code>应返回“e”。
testString: 'assert.deepEqual(fearNotLetter("bcdf"), "e", "<code>fearNotLetter("bcdf")</code> should return "e".");'
- text: <code>fearNotLetter("abcdefghijklmnopqrstuvwxyz")</code>应返回undefined。
testString: 'assert.isUndefined(fearNotLetter("abcdefghijklmnopqrstuvwxyz"), "<code>fearNotLetter("abcdefghijklmnopqrstuvwxyz")</code> should return undefined.");'
Challenge Seed
function fearNotLetter(str) {
return str;
}
fearNotLetter("abce");
Solution
// solution required