CodeYourFuture / CodeYourFuture/Module-Data-Groups

Update median exercise and add new throw/catch practice exercises

Abierto
#1,443 0 comentarios 0 reacciones 1 asignado Reclamado por @abdishakoor-dev Ver en GitHub
📅 Sprint 1 NotCoursework
Lenguaje dominante
JavaScript
Estrellas
1
Forks
326
Merge medio
3 h 25 min
PR fusionados (30 d)
2

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.