JavaScript Substitua a vogal
function vowel2index(str) {
return str.replace(/[aeiou]/ig, (m, i) => i + 1);
}
Encouraging Eagle
function vowel2index(str) {
return str.replace(/[aeiou]/ig, (m, i) => i + 1);
}