DEV Community

Discussion on: JavaScript Quiz Part 2

Collapse
 
sait profile image
Sai gowtham

Wow i was expecting this answer for reversing a string you can even do

const stringRev = (str)=>[...str].reduce((acc,e)=>e+acc)