Feature #1

Merged
WilliamSimao merged 11 commits from Feature into master 2022-11-01 00:09:34 +00:00
Showing only changes of commit e9f6faa988 - Show all commits

View File

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