Frequencies hash not set correctly.... really?


Hi guys

I’m stuck at the Iterating Over Array lesson. Any ideas? Thanks

Error Message:
It looks like you haven’t set the frequencies hash correctly. Check the Hint if you need help!

puts "Text please"
text = gets.chomp
words = text.split(" ")
words.each do
  frequencies[words] +=1

Replace this line with your code.

<do not remove the three backticks above>


Please post a link to this exercise. Thanks.

Missing the block parameter.

words.each do |word|
    frequencies[word] ...


Thank you ! It worked