Hashes and symbols


Replace this line with your code.

Hello people can someone please explain why the mentioned same strings with same symbol differs while running the code?


a SYMBOL is an =immutable object= ( an Object that cannot be changed !!! )
With a google search
== discussions / opinions ==
ruby object_id explained site:stackoverflow.com
for instance

What you should know.....
The symbol-object is an object which causes a lot of confusion,even among experienced RUBY programmers.... ( a bit fuzzy )


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.