Answer Posted / Krishna Kumar Tiwari
Variables in Ruby are containers for storing values. Variables can be assigned values using the '=' operator and should follow naming conventions mentioned earlier (e.g., @variable_name). There are different types of variables: instance variables (@variable), class variables (@@variable), local variables (variable), and global variables ($variable).
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers