js-mentorship-razvan / javascript

Javascript study notes
GNU General Public License v3.0
22 stars 2 forks source link

Solve 'Reversed Words' #298

Closed odv closed 5 years ago

odv commented 5 years ago

https://www.codewars.com/kata/reversed-words/train/javascript

RazvanBugoi commented 5 years ago
function reverseWords(str){
  return str.split(' ').reverse().join(' ');
}