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 are the different uses of ruby modules?
Explain break statement in Ruby?
What is the difference between calling super and calling super()?
Explain ruby ranges. What are the ways to define ranges?
Explain the role of modules and mixins in ruby?
Explain do while loop in ruby.
What function converts all html special symbols to html entities in ruby?
Explain about variables?
What is the use of interpolation in ruby?
What are freezing string in Ruby?
Difference between nil and false in ruby?
Tell us in ruby, it explains about the defined operator?