Array summation problem using reduce ()

var datas = [
    {
        name: "",
        sex: "female",
        age: 30
    },
    {
        name: "",
        sex: "male",
        age: 20
    },
    {
        name: "",
        sex: "female",
        age: 40
    }
];

how to use reduce () to find the sum of age without for,map (),

Mar.22,2021

datas.reduce(function(pre, next) {
    return pre + next.age;
}, 0);
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b43312-34a23.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b43312-34a23.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?