FreeCodeCampChina / FreeCodeCampChina/freecodecamp.cn

翻译问题

Open
#505 3 comments 0 reactions 0 assignees View on GitHub
enhancement Need Server Update PR Ready
Dominant language
CSS
Stars
37.8k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

Challenge [Multiple Identical Options in Switch Statements](https://www.freecodecamp.cn/challenges/multiple-identical-options-in-switch-statements#?solution=%20function%20myTest(val)%20%7B%0A%20%20var%20answer%20%3D%20%22%22%3B%0A%20%20%2F%2F%20%E8%AF%B7%E6%8A%8A%E4%BD%A0%E7%9A%84%E4%BB%A3%E7%A0%81%E5%86%99%E5%9C%A8%E8%BF%99%E6%9D%A1%E6%B3%A8%E9%87%8A%E4%BB%A5%E4%B8%8B%0A%20%20%20switch%20(val)%7B%0A%20%20%20case%20(val%3D1)%3A%0A%20%20%20case%20(val%3D2)%3A%0A%20%20%20case%20(val%3D3)%3A%0A%20%20%20answer%20%3D%22Low%22%3B%0A%20%20%20break%3B%0A%20%20%20case%20(val%3D4)%3A%0A%20%20%20case%20(val%3D5)%3A%0A%20%20%20case%20(val%3D6)%3A%0A%20%20%20%20%20%20%20answer%3D%22Mid%22%3B%0A%20%20%20%20%20%20%20break%3B%0A%20%20%20%20%20%20%20case%20(val%3D7)%3A%0A%20%20%20case%20(val%3D8)%3A%0A%20%20%20case%20(val%3D9)%3A%0A%20%20%20answer%20%3D%22High%22%3B%0A%20%20%20%20%20%20%20break%3B%0A%20%20%20%7D%0A%20%20%2F%2F%20%E8%AF%B7%E6%8A%8A%E4%BD%A0%E7%9A%84%E4%BB%A3%E7%A0%81%E5%86%99%E5%9C%A8%E8%BF%99%E6%9D%A1%E6%B3%A8%E9%87%8A%E4%BB%A5%E4%B8%8A%0A%20%20return%20answer%3B%20%20%0A%7D%0A%0A%2F%2F%20%E4%BD%A0%E5%8F%AF%E4%BB%A5%E4%BF%AE%E6%94%B9%E8%BF%99%E4%B8%80%E8%A1%8C%E6%9D%A5%E6%B5%8B%E8%AF%95%E4%BD%A0%E7%9A%84%E4%BB%A3%E7%A0%81%0AmyTest(1)%3B%0A%0A) has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:
```javascript
function myTest(val) {
var answer = "";
// 请把你的代码写在这条注释以下
switch (val){
case (val=1):
case (val=2):
case (val=3):
answer ="Low";
break;
case (val=4):
case (val=5):
case (val=6):
answer="Mid";
break;
case (val=7):
case (val=8):
case (val=9):
answer ="High";
break;
}
// 请把你的代码写在这条注释以上
return answer;
}

// 你可以修改这一行来测试你的代码
myTest(1);

```
题目中的
如果你有多个输入值**和**输出值一样
原文是
If you have multiple inputs **with** the same output
认为应该将“和”改成“的”。

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.