Add a removeLetter function that takes a string and a letter. The result of the function should be string, which does not have the specified character in letter. How to do peple?
function deleteLetter(string, letter) {
let final = '';
for (let i = 0; i<string.length; i++) {
if (string[i] === letter) {
final.concat(string[i])
}
return final;
}
}