Hello everyone, I’m currently at the Pig Latin challenge and I manage to pass every test except the “no vowels” one. After taking a look at the code provided by FCC, I came across one line I’m having trouble understanding!
// Find how many consonants before the first vowel.
var vowelIndice = str.indexOf(str.match(regex));
Could someone explain to me exactly what this line does and especially that “” at the end.
Thanks in advance;
Link to the basic solution provided by FCC: