Guest User

Untitled

a guest
Feb 21st, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 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. if (char != 'a' && char != 'e' && char != 'i' && char != 'o' && char != 'u') {
  17. result = result + char
  18. }
  19. }
  20. return result
  21. }
  22.  
  23. console.log(remove_vowels(input))
  24. </script>
  25.  
  26.  
  27.  
  28. <script id="jsbin-source-javascript" type="text/javascript">let input = 'hello world'
  29.  
  30. function remove_vowels(input) {
  31. let result = ''
  32. for (let char of input) {
  33. if (char != 'a' && char != 'e' && char != 'i' && char != 'o' && char != 'u') {
  34. result = result + char
  35. }
  36. }
  37. return result
  38. }
  39.  
  40. console.log(remove_vowels(input))</script></body>
  41. </html>
Add Comment
Please, Sign In to add comment