re: How to reverse a string in JavaScript VIEW POST

VIEW FULL DISCUSSION
 

The first one is the most readable (hence the best).

The second and the third methods can be combined into a more readable one liner:

[...str].reverse().join('')
 
code of conduct - report abuse