Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var text = prompt("What is Lance trying to say? ");
- var vowels = ["a","e","i","o","u"];
- for(var j = 0 ; j < text.length ; j ++){
- if ( vowels.includes(text[j])){
- var o = "i";
- }
- else{
- var o = text[j];
- }
- console.log(o)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement