I am trying to call this reduce function:
users.reduce(function (acc, obj) { return acc + obj.age/3; }, 0);
in this function:
function computeUserAverageAge(users) {};
to test this array of objects for the average of these "age" values:
const users = [{
name: 'Brendan Eich',
age: 56,
}, {
name: 'Linus Torvalds',
age: 48,
}, {
name: 'Margaret Hamilton',
age: 81,
}];
I am thankful for your help and patience!