+ 3

CHALLENGE - Alternate Capitalization

You will be given a string, and your task is to write a function that will capitalize the letters that have even indexes and odd indexes separately, then return an array of both cases like the example bellow. EXAMPLE: capitalize("abcdef") = ['AbCdEf', 'aBcDeF']. Any language is welcome :D

24th Nov 2017, 12:08 PM
Witty Phantom
Witty Phantom - avatar
7 Answers
24th Nov 2017, 4:40 PM
KĂ€zĂź MrĂźdĂčl HĂžssÀßn
KĂ€zĂź MrĂźdĂčl HĂžssÀßn - avatar
24th Nov 2017, 12:25 PM
SAKSHI
SAKSHI - avatar
+ 5
https://code.sololearn.com/c5e4UKo9UZyg/?ref=app
3rd Dec 2017, 4:04 PM
I'm_Groot
I'm_Groot - avatar
+ 2
This is actually amazing Armen!
24th Nov 2017, 4:32 PM
Witty Phantom
Witty Phantom - avatar