DEV Community

[Comment from a deleted post]
Collapse
 
caseycole589 profile image
Casey Cole

const reverseString = cs => cs.length <=0
? ''
: reverseString(cs.substring(1)) + cs[0];