<<<<<<< HEAD Code Wars - Brett Crafton

Vowel remover

Question

Create a function called shortcut to remove the lowercase vowels (a, e, i, o, u ) in a given string. Examples

"hello" --> "hll" "codewars" --> "cdwrs" "goodbye" --> "gdby" "HELLO" --> "HELLO"

Solution by -

My Solution


	function shortcut (string) {
		return string.replace(/[aeiou]/ig,'');
		}
				

Try it yourself - CodeWars

======= Code Wars - Brett Crafton

Vowel remover

Question

Create a function called shortcut to remove the lowercase vowels (a, e, i, o, u ) in a given string. Examples

"hello" --> "hll" "codewars" --> "cdwrs" "goodbye" --> "gdby" "HELLO" --> "HELLO"

Solution by -

My Solution


	function shortcut (string) {
		return string.replace(/[aeiou]/ig,'');
		}
				

Try it yourself - CodeWars

>>>>>>> 0e614172debaa009c8d31330edbeb3b765b59c39