String cartography

I can’t understand what’s wrong with my code, can anybody pls help?

import { word } from ‘grasshopper.wordList’;
console.log(word);
function mapString(string, ___) {
let map = {
___: ___
};


for (let i = 0; i < string.length; i++) {
let letter = string[i];
if (map[letter]) {
if (map[letter].push(i)) {
___
} else {
map[letter] = i;
}
}
}
};
let stringMap = mapString(word);
for (let letter in stringMap) {
console.log(letter + ': ’ + stringMap[letter]);
}
return map;

Hello! Have you tried shifting the return map 5 lines up?