You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The examples below show you how to write function accum: Examples: accum("abcd"); // output: "A-Bb-Ccc-Dddd" accum("RqaEzty"); // output: "R-Qq-Aaa-Eeee-Zzzzz-Tttttt-Yyyyyyy" accum("cwAt"); // output: "C-Ww-Aaa-Tttt" The parameter of accum is a string which includes only letters from a..z and A..Z.