I am stuck on Lesson 8, page 5 of 8.
I do not understand what is required.
I do understand that I have to enter multiple words into a string.
Then move those words into an array.
Then count the occurrences of each word in the array.
The total number of occurrences for each word is to be written into ‘frequencies’.
Am I supposed to populate ‘frequencies’ with the words and the number of its occurrences or just the number of occurrences?
For the text “This is text this is”, should the content of ‘frequencies’ be this => 2, is => 2, text => 1,
2 , 2, 1