You’re not yet asking your snippet to do anything just yet so you don’t need ‘do’. It’s a little confusing when you’re going off of the example. Since there is no ‘do’ you also don’t need an end. All you’re asking for your code to do is sort it on this line, (by your preferred sorting method involving the elements ‘frequencies’ currently has.) This way you’re telling it to sort by the ‘count’ placeholder.
You spelled frequencies wrong. You have it correct when you initially set the has, and then the following 2 times you spelled it with a “c” instead of a “q”
I spelled correctly checked multiple times. still keeps giving me the same error message. At this point I started feel like they are expecting me to figure out what answer they are thinking.
============ Here is my code =====================
puts “Text please:”
text = gets.chomp
words = text.split (" ")
I spelled correctly checked multiple times. still keeps giving me the same error message. At this point I started feel like they are expecting me to figure out what answer they are thinking.
============ Here is my code =====================
puts “Text please:”
text = gets.chomp
words = text.split (" ")