Answer Posted / Sudha Devi
$ is a prefix for global variables in Ruby. It means that any variable prefixed with a $ sign can be accessed from anywhere within your program. However, it's generally discouraged to use global variables as they can lead to naming conflicts and make code harder to manage.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers