const removeLetter = (str, letter) => Array.from(str).filter(a => a !== letter).join(''); console.log(removeLetter('Mate academy', 'a'));