Files
front-end-example/03-javascript-core/13-array-high-order-methods/README.md
charlie 877acb5a8f feat: Add JavaScript core exercises and solutions
- Implemented exercises for array high-order methods, memory and execution, switch statements, and final review.
- Added starter and answer files for each exercise to facilitate learning.
- Created a runner HTML file to execute JavaScript code and display console outputs.
- Updated README files to include exercise objectives, tasks, and usage instructions.
2026-03-13 11:09:19 +08:00

31 lines
755 B
Markdown
Raw 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.

# 练习 13数组高阶函数
## 目标
学会使用数组高阶函数处理一组数据。
## 你要练什么
- `map()`
- `filter()`
- `reduce()`
- `find()`
- `some()`
- `every()`
## 任务
请完成一个“学习成绩分析”脚本,要求:
-`map` 生成带单位的新数组
-`filter` 找出及格成绩
-`reduce` 计算总分
-`find` 找出第一条大于等于 90 的成绩
-`some` 判断是否有人不及格
-`every` 判断是否全部完成考试
## 文件
- [starter.js](/Users/lijiaqing/home/wwwroot/front-end-example/03-javascript-core/13-array-high-order-methods/starter.js)
- [answer.js](/Users/lijiaqing/home/wwwroot/front-end-example/03-javascript-core/13-array-high-order-methods/answer.js)