Here is my code for the Whale Talk project.
Any feedback would be great
Happy Coding
let input = 'turpentine and turtles';
let vowels = ['a', 'e', 'i', 'o', 'u'];
let resultArray = [];
for (let i = 0; i < input.length; i++){
if (input[i] === 'e'){
resultArray.push(input[i]);
} if (input[i] === 'u'){
resultArray.push(input[i]);
}
for (let j = 0; j < vowels.length; j++){
if (input[i] === vowels[j]){
resultArray.push(vowels[j]);
}
}
}
let resultString = resultArray.join().toUpperCase()
console.log(resultString);