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

Sentence Smash

Question

Write a function that takes an array of words and smashes them together into a sentence and returns the sentence. You can ignore any need to sanitize words or add punctuation, but you should add spaces between each word. Be careful, there shouldn't be a space at the beginning or the end of the sentence! Example

['hello', 'world', 'this', 'is', 'great'] => 'hello world this is great'

Solution by -

My Solution


	function smash (words) {
		return words.join(" ")
		};
				

Try it yourself - CodeWars

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

Sentence Smash

Question

Write a function that takes an array of words and smashes them together into a sentence and returns the sentence. You can ignore any need to sanitize words or add punctuation, but you should add spaces between each word. Be careful, there shouldn't be a space at the beginning or the end of the sentence! Example

['hello', 'world', 'this', 'is', 'great'] => 'hello world this is great'

Solution by -

My Solution


	function smash (words) {
		return words.join(" ")
		};
				

Try it yourself - CodeWars

>>>>>>> 0e614172debaa009c8d31330edbeb3b765b59c39