Files
Web-Dev-For-Beginners/2-js-basics/3-making-decisions/translations/assignment.zh-cn.md
2021-04-05 21:34:11 +08:00

41 lines
906 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 运算符
## 说明
玩转运算符。这里有一个你可以尝试去实现的程序的建议:
你有一群来自两种不同评分系统的学生。
### 第一种评分系统
一种评分系统的分数范围是 1-5其中 3 及以上代表合格。
### 第二种评分系统
另一种评分系统有这些分数:`A, A-, B, B-, C, C-`,其中 `A` 是最好的分数,`C` 是最低的合格分数。
### 任务
有下方数组 `allStudents`,表示所有学生和它们的分数,构造一个包含所有合格的学生的新数组 `studentWhoPass`
> 提示:可利用 for 循环、if...else 语句和比较运算符
```javascript
let allStudents = [
'A',
'B-',
1,
4,
5,
2
]
let studentsWhoPass = [];
```
## 评价表
| 指标 | 优秀 | 良好 | 尚可进步 |
| --- | --- | --- | --- |
| | 给出了完整解答 | 给出了部分解答 | 解答中存在 Bug |