Solución
solution.tsTypeScript
function countWordsStartingWithVowel(sentence: string): number {
return sentence.split(" ").filter(x => /^[aeiou]/i.test(x)).length;
}
// No modificar: necesario para evaluar el resultado.
export { countWordsStartingWithVowel };0respuestas