Longest Vowel Substring in JS 0 ▲ Andrew Odendaal 188 days ago · Science · hide · Fediverse post The challenge Given a lowercase string of letters (no spaces, no digits), return the length of the longest substring made only of vowels (aeiou). Examples: solve("codewarriors"); // → 2 (the "io" in warriors) solve("suoidea"); // → 3 (the "uoi") solve("aeioaexaeuoiou"); // → 7 (the "aeuoiou") solve("bcd"); // → 0 solve("a"); // → 1 The Codewars Kata in the JavaScript track uses aeioaexaeuoiou as a tie-breaker test. The two vowel runs in that string are aeioae (6) and aeuoiou (7) — the answer is 7. Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town