Advertisement
biswasrohit20

check

Mar 13th, 2021
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. var text = prompt("What is Lance trying to say? ");
  2. var vowels = ["a","e","i","o","u"];
  3. for(var j = 0 ; j < text.length ; j ++){
  4. if ( vowels.includes(text[j])){
  5. var o = "i";
  6. }
  7. else{
  8. var o = text[j];
  9. }
  10. console.log(o)
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement