Skip to content

Latest commit

 

History

History

repeat-symbol

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Write a function repeatSymbol(str) that repeats the characters of an input str and returns a hyphen-separated string. The number of repetitions should depend on the character index. Each leading character on a new string must be uppercase.


Input: repeatSymbol('asd')

Output: A-Ss-Ddd