I’m having a problem with the mini linter js project, specifically step 2 which asks us to log the length of an array. I have created an array of individual words, as requested in step 1 using the following code:
const storyWords = [
Then log the length with the following code:
My problem is that the length of storyWords returns 1, despite the fact that if i simply log the array storyWords, all of the words in the storry appear in the array. I know there is more than 1 word in the array, so why is .length returning 1?
Here’s the full code: