<<<<<<< HEAD Code Wars - Brett Crafton

Reversed Words

Question

Complete the solution so that it reverses all of the words within the string passed in. Example:

"The greatest victory is that which requires no battle" --> "battle no requires which that is victory greatest The"

Solution by -

My Solution


	function reverseWords(str){
		return str.split(' ').reverse().join(' '); // reverse those words
		}
				

Try it yourself - CodeWars

======= Code Wars - Brett Crafton

Reversed Words

Question

Complete the solution so that it reverses all of the words within the string passed in. Example:

"The greatest victory is that which requires no battle" --> "battle no requires which that is victory greatest The"

Solution by -

My Solution


	function reverseWords(str){
		return str.split(' ').reverse().join(' '); // reverse those words
		}
				

Try it yourself - CodeWars

>>>>>>> 0e614172debaa009c8d31330edbeb3b765b59c39