Advertisement
biswasrohit20

hilli

Mar 13th, 2021
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. //silver
  2.  
  3. var text = prompt("What is Lance trying to say? ")
  4. text = text.split("")
  5. var vowels = ["a","e","i","o","u"]
  6. for(var i of text){
  7. if ( vowels.includes(i)){
  8. i = "i"
  9. }
  10. console.log(i)
  11. }
  12.  
  13.  
  14. //gold
  15.  
  16. var text = prompt("What is Lance trying to say? ")
  17. text = text.split("")
  18. var vowels = ["a","e","i","o","u"]
  19. var output = ""
  20. for(var i of text){
  21. if ( vowels.includes(i)){
  22. i = "i"
  23. }
  24. output += i
  25. }
  26. console.log(output)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement