Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created January 10, 2023 19:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/759982848cc73f31ff98d1c11c81cacc to your computer and use it in GitHub Desktop.
Save codecademydev/759982848cc73f31ff98d1c11c81cacc to your computer and use it in GitHub Desktop.
Codecademy export
let input = 'for whom the bell tolls';
const vowels = ['a','e','i','o','u'];
let resultArray = [];
for (let i = 0; i < vowels.length; i++){
//console.log(vowels[i]);
for (let v = 0; v < vowels[i].length; v++){
if(input[i] === vowels[v]){
console.log(input[i]);
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment