Whale talk project

I have attached the link to my whale talk project that I have been working on! I am looking for ways to make my code more compact/concise, particularly around lines 8 - 12.

Thank you!

You don’t need to write the else if condition here
the logical operator ( || ) to help you like this =

for (var i = 0; i < input.length; i++) {
  for (var j = 0; j < vowels.length; j++) {
    if (input[i] == vowels[j]) {
      resultArray.push(input[i]);
    }
  }
  if (input[i] === "e" || input[i] === "u") {
    resultArray.push(input[i]);
  }
}

console.log(resultArray.join("").toUpperCase());

i just looked my whale talk project and saw this maybe some people want to use ternary operator in here but its not good for readable i think.

for (var i = 0; i < input.length; i++) {
  for (var j = 0; j < vowels.length; j++) {
     input[i] == vowels[j] ? resultArray.push(input[i]) : null ;
  }
 input[i] === "e" || input[i] === "u" ? resultArray.push(input[i]) : null ;

}

project : https://www.codecademy.com/workspaces/6269a849f6af6d5b554ac285