CodeYourFuture / CodeYourFuture/Module-Data-Groups

Update median exercise and add new throw/catch practice exercises

未关闭
#1,443 0 条评论 0 个 reaction 已指派 1 人 已被 @abdishakoor-dev 认领 在 GitHub 查看
📅 Sprint 1 NotCoursework
主要语言
JavaScript
星标
1
派生
326
平均合并
3 小时 25 分钟
30 天内合并 PR
2

描述

**Which module(s) and week(s) does this change affect?**
Module(s): Data Groups
Week(s): Sprint 1

**What is the work that needs to be done?**

`Sprint-1/fix/median.js` currently expects `calculateMedian` to return `null`/silently filter bad values, which now contradicts the error handling fundamentals content ([curriculum#1949](https://github.com/CodeYourFuture/curriculum/pull/1949)) that teaches throwing instead. Update this exercise to match, and add new exercises giving trainees practice throwing and catching errors.

**Why is this work important to do?**

Suggested by @illicitonion during review of curriculum#1949. Keeps exercises consistent with newly taught content.

**Additional context**

**Who might need to know about this change?**

@illicitonion

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。