+ 2
Ruby
I have typed the code as it is from concept called frequency counter, but it showing error https://code.sololearn.com/cTTNCTi0V1Pl/?ref=app
6 Antworten
+ 1
Okkk got that
+ 1
Thank u
0
HELL DRAGON
There is no such method 'each_char' in Ruby Hash {}
there should be b.each_char
or do like this:
https://code.sololearn.com/cZG13vjG1lNr/?ref=app
0
But it was mentioned in frequency counter concept in ruby , each_char , is there is any bugs in that?
0
HELL DRAGON
Hash {} contains key value pair so each_char cannot be a method of Hash {}
it is a method of String so there should be
b.each_char
0
Okay 😁