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