fix invalid codeWed, 30 Nov 2022

let translate = (string) => { let split = string.split(""); for(var i = 0; i < split.length; i++) { if(split[i] === "h") { split[i] = "j"; } if(split[i] === "i") { split[i] = "o"; } if(split[i] === "o") { split[i] = "i"; } if(split[i] === "j") { split[i] = "h"; } } return split.join(""); }

### Solution:

Questions about programming?Chat with your personal AI assistant