Interview question of the issue #279 of rendezvous with cassidoo.
Given a string, make every consonant after a vowel uppercase. Can you do this with and without regex?
Example:
> capitalAfterVowel("hello world")
> "heLlo WoRld"
> capitalAfterVowel("xaabeuekadii")
> "xaaBeueKaDii"
Just pnpm i
to install all dependencies and then pnpm t
to run the tests!