DEV Community

Discussion on: How to Reverse a Given String in Javascript

Collapse
 
moresaltmorelemon profile image
Ezra Schwepker

Why not use all array methods?

const reverseStr = str => str.split('').reverse().join('');