345-reverse-vowels-of-a-string
DevGod
Elf Vtuber
/** * @param {string} s * @return {string} */var reverseVowels = function(s) { const vow = s.match(/[aeiou]/gi); return s.replace(/[aeiou]/gi, el=> vow.pop());};/** * @param {string} s * @return {string} */var reverseVowels = function(s) { const vow = s.match(/[aeiou]/gi); return s.replace(/[aeiou]/gi, el=> vow.pop());};