64 lines
1.9 KiB
Markdown
Raw Normal View History

---
id: af7588ade1100bde429baf20
title: Missing letters
isRequired: true
challengeType: 5
videoUrl: ''
localeTitle: 遗失的信件
---
## Description
<section id="description">在传递的字母范围内找到丢失的字母并将其返回。如果范围内存在所有字母则返回undefined。如果卡住请记得使用<a href="https://www.freecodecamp.org/forum/t/how-to-get-help-when-you-are-stuck-coding/19514" target="_blank">Read-Search-Ask</a> 。尝试配对程序。编写自己的代码。 </section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>fearNotLetter(&quot;abce&quot;)</code>应返回“d”。
testString: 'assert.deepEqual(fearNotLetter("abce"), "d", "<code>fearNotLetter("abce")</code> should return "d".");'
- text: <code>fearNotLetter(&quot;abcdefghjklmno&quot;)</code>应该返回“i”。
testString: 'assert.deepEqual(fearNotLetter("abcdefghjklmno"), "i", "<code>fearNotLetter("abcdefghjklmno")</code> should return "i".");'
- text: <code>fearNotLetter(&quot;stvwx&quot;)</code>应该返回“u”。
testString: 'assert.deepEqual(fearNotLetter("stvwx"), "u", "<code>fearNotLetter("stvwx")</code> should return "u".");'
- text: <code>fearNotLetter(&quot;bcdf&quot;)</code>应返回“e”。
testString: 'assert.deepEqual(fearNotLetter("bcdf"), "e", "<code>fearNotLetter("bcdf")</code> should return "e".");'
- text: <code>fearNotLetter(&quot;abcdefghijklmnopqrstuvwxyz&quot;)</code>应返回undefined。
testString: 'assert.isUndefined(fearNotLetter("abcdefghijklmnopqrstuvwxyz"), "<code>fearNotLetter("abcdefghijklmnopqrstuvwxyz")</code> should return undefined.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function fearNotLetter(str) {
return str;
}
fearNotLetter("abce");
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>