Guest User

Untitled

a guest
Feb 21st, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width">
  6. <title>JS Bin</title>
  7. </head>
  8. <body>
  9.  
  10. <script id="jsbin-javascript">
  11. let input = 'hello world'
  12.  
  13. function remove_vowels(input) {
  14. let result = ''
  15. for (let char of input) {
  16.  
  17. if (char != 'a' && char != 'e' && char != 'i' && char != 'o' && char != 'u') {
  18. result = result + char
  19. }
  20. }
  21. return result
  22. }
  23.  
  24. console.log(remove_vowels(input))
  25. </script>
  26.  
  27.  
  28.  
  29. <script id="jsbin-source-javascript" type="text/javascript">let input = 'hello world'
  30.  
  31. function remove_vowels(input) {
  32. let result = ''
  33. for (let char of input) {
  34.  
  35. if (char != 'a' && char != 'e' && char != 'i' && char != 'o' && char != 'u') {
  36. result = result + char
  37. }
  38. }
  39. return result
  40. }
  41.  
  42. console.log(remove_vowels(input))</script></body>
  43. </html>
Add Comment
Please, Sign In to add comment