Answer Posted / Ranveer Kumar Singh
In Ruby, Symbols are immutable objects with unique identities, while variables are mutable references to objects. Symbols can be used as keys in hashes and method names, whereas variables are used for storing values.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers