CodeYourFuture / CodeYourFuture/Module-Data-Groups

Update median exercise and add new throw/catch practice exercises

Đang mở
#1,443 0 bình luận 0 reaction 1 người được giao Được @abdishakoor-dev nhận Xem trên GitHub
📅 Sprint 1 NotCoursework
Ngôn ngữ chính
JavaScript
Star
1
Fork
326
Merge trung bình
3 giờ 25 phút
Pull request đã merge (30 ngày)
2

Mô tả

**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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.