DEV Community

Discussion on: 5 Solutions: Reverse String Algorithm in JS

Collapse
 
jonrandy profile image
Jon Randy 🎖️
const reverse = ([...string]) => string.reverse().join('')
Enter fullscreen mode Exit fullscreen mode