Tell me how symbol is different from variables?
Answer / 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 |
What is concatenating string in Ruby?
Tell us how would you implement hash in ruby internally?
Tell us the types of variables available in ruby class?
Explain about Float, Dig and Max?
How symbol is different from variables?
Explain module mixins in Ruby?
What function converts all html special symbols to html entities in ruby?
Ruby support single inheritance/multiple inheritance or both?
How to check whether a directory exist or not in Ruby?
What are freezing string in Ruby?
Which ruby interpreter option enables debugging?
What is the difference between “#==” and “#equal?”