JS menghitung frekuensi char dalam string
let charFreq = str => {
return str.split('').reduce((total, letter) => {
total[letter] ? total[letter]++ : total[letter] = 1;
return total;
}, {});
};
Impossible Ibis