if the first one is true, all the expression is true
if you want to say that arr[i] is not a vowel you need to use &&
Also, please, start using the Ask for help button
If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.
function translatePigLatin(str) {
let consonantRegex = /^[^aeiou]+/;
let myConsonants = str.match(consonantRegex);
console.log(myConsonants)
}
translatePigLatin("consonant");