Answer Posted / Robinder Singh Goyath
$ variables, also known as global variables, are used to store values accessible across all scopes within a Ruby program. They can be accessed without an explicit qualifier, making them easier to access but potentially leading to unintended conflicts and errors. It's generally recommended to avoid using global variables unless necessary.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers