Skip to content

Latest commit

 

History

History

reverseVowelsInAString

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Reverse Vowels In A String

6 kyu link to kata
my solution

In this kata, your goal is to write a function which will reverse the vowels in a string. Any characters which are not vowels should remain in their original position. Here are some examples:

"Hello!" => "Holle!"
"Tomatoes" => "Temotaos"
"Reverse Vowels In A String" => "RivArsI Vewols en e Streng"

For simplicity, you can treat the letter y as a consonant, not a vowel.

Good luck!