feature #1

Merged
Emilly_schuenck merged 12 commits from feature into master 2022-11-02 21:34:20 +00:00
Showing only changes of commit fddd3bd930 - Show all commits

View File

@ -1,4 +1,12 @@
export function mostUsedChar(text) {
// implementar logica aqui
return ""
}
// implementar logica aqui
let max = 0;
let mostRep = "";
text.split("").forEach(function (index) {
if (text.split(index).length > max) {
max = text.split(index).length;
mostRep = index;
}
});
return mostRep;
}