Search⌘ K

Challenge: Calculate Score

Explore how to implement a JavaScript function that sums values filtered by gender from an array of objects. This challenge reinforces functional programming concepts and prepares you for coding interviews.

Problem statement #

In this challenge, you have to implement the function boySum that takes the parameter records. Here records is an array of objects that contains two properties, gender and value. ...