гласный JavaScript
const encode = (string) => {
let newStringArray =string.split("").filter(
(ch) => ch === "a" || ch === "e" || ch === "i" || ch === "o" || ch === "u"
);
return newStringArray;
};
encode('football').forEach(vowel=>{
console.log(vowel);
})
//o
//o
//a
Said HR