The function called `getCountryWins` which takes the parameters `data` and `team initials` and returns the number of world cup wins that country has had is:
function getCountryWins(FRA) {
initialValue,
currentIndex,
return total + currentValue getCountryWins(FRA);
"World Cup wins": 2,
array.reduce(function(total, currentValue, currentIndex, arr), initialValue)
}
The above function calls the function that contains the data and team initials of the country France and then uses the reduce() method executes a reducer function for the array element.
Read more about javascript here:
https://brainly.com/question/16698901
#SPJ1