Mini linter step 7

In step 7 of the Mini Linter project it says to log betterWords as a single string.
I tried console.log(betterWords.split()); but it doesn’t work. How do you do this?

betterWords is an array of strings. To write as a single string, such as a sentence, we use the Array.join() method with a space (' ') delimiter.

sentence = array.join(' ')
1 Like