Reverse a string | JavaScript

April 25th, 2021 09:52:03 PM

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

Featured Posts