Whale Talk practice

I slightly changed the whale talk practice code. It does not run. Could anyone help me with my coding?

const name = 'Sea Shepherd';

const vowels = ['a','e','i','o','u'];

let translationArray = [];

for (let nameIndex = 0; nameIndex < name.length; nameIndex++) {

  for (let vowelsIndex = 0; vowelsIndex < vowels.length; vowelsIndex++) {

    if (name[nameIndex] === vowels[vowelsIndex]) {

      

    }

  }

}

So far so good, what is next?

It runs fine, but you haven’t told it to do anything with the matches. If you add a console.log statement you can see it is checking each value and catching the matches. Example:

const name = 'Sea Shepherd';
const vowels = ['a','e','i','o','u'];
let translationArray = [];
for (let nameIndex = 0; nameIndex < name.length; nameIndex++) {
  for (let vowelsIndex = 0; vowelsIndex < vowels.length; vowelsIndex++) {
    if (name[nameIndex] === vowels[vowelsIndex]) {
      console.log(`${nameIndex}: ${name[nameIndex]}: ${vowels[vowelsIndex]}`); // THIS IS THE ADDED CONSOLE LOG
      // Do something with the matches here
    }
  }
}

Outputs:
1: e: e
2: a: a
6: e: e
9: e: e

"Sea Shepherd" has those letters at those indices. No errors, but you aren’t doing anything when you find a match in your code.