Answer Posted / Geeta Chhabra
{"symbol": "A Symbol in Ruby is an object that represents a unique string value. It's similar to a string but uses less memory since it shares the same value for identical symbols (e.g., :symbol_name).","variable": "A variable in Ruby can hold any value, including strings, numbers, arrays, etc. They are created using a name and do not share their values with other variables."
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers