79280662

Date: 2024-12-14 13:02:10
Score: 1
Natty:
Report link
let arr = ["academy"];
let theResult = {};
for (let i = 0; i < arr.length; i++) {
  let word = arr[i];
  for (let char of word) {
    if (char !== " ") {
      theResult[char] = word.split("").filter((x) => x == char).length;
    }
  }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: abdullah khan