Reverse a string


PHOTO EMBED

Mon Jan 25 2021 14:09:30 GMT+0000 (UTC)

Saved by @aymanelya #javascript

const reverse = str => str.split('').reverse().join('');
reverse('hello world');     
// Result: 'dlrow olleh'
content_copyCOPY

https://medium.com/dailyjs/13-javascript-one-liners-thatll-make-you-look-like-a-pro-29a27b6f51cb