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 摘要。