Challenge: Calculate Score

This challenge will test your skills in implementing the reduce function in JavaScript.

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. The ...