You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
24 |[Square of even numbers](#exercise-arr-24) | ✔️ |[Solution](./array-exercises/24_squareEven)
332
333
333
334
334
335
@@ -1528,6 +1529,19 @@ III. **Conditional Check**
1528
1529
1529
1530
</details>
1530
1531
1532
+
---
1533
+
1534
+
<detailsid="exercise-arr-24">
1535
+
<summary><strong>Exercise 24: Sum of Squares of Even Numbers</strong></summary>
1536
+
1537
+
Write a function sumOfSquaresOfEvenNumbers(arr) that takes an array of numbers arr. The function should return the sum of the squares of all the even numbers in the array.
1538
+
1539
+
```javascript
1540
+
let numbers = [1, 2, 3, 4, 5, 6];
1541
+
sumOfSquaresOfEvenNumbers(numbers); // Should return 56
0 commit comments