Help with whale talk

Hello, I am having some trouble with the Whale Talk exersice.
I am only able to push ‘U’ once when I am supposed to be pushing ‘uu’. Does anyone have any idea why?
const input = 'turpentine and turtles'; const vowels = ['a','e','i', 'o', 'u'];
`
let resultArray = ;
for ( let i = 0; i < input.length; i++){
for ( let j = 0; j < vowels.length; j++){
if( input[i] === vowels[j]){
if ( input[i] === ‘e’){
resultArray.push(‘ee’);
}
else if (input[j] === ‘u’){
resultArray.push(‘uu’);
}
else {
resultArray.push(input[i]);
}
}
}
}
console.log(resultArray.join(’’).toUpperCase());

Little typo! When you check for u, your else if is checking input[j] instead of using index i

Thank you so much for the help!
It works perfectly now :smiley: