• + 0 comments

    Solution using JS let newArr = arr.slice().sort(), most = [undefined, 0], counter = 0;
    newArr.reduce(function(old, chr){ old == chr ? ++counter > most[1] && (most = [chr, counter]) : (counter = 1) return chr }); return most[0];