Question - What are Ruby variables.
Answer -
Ruby variables hold data which can be used later in a program. Each variable act as a memory and shas a different name.
There are four types of variables in Ruby:
- Local variable
- Class variable
- Instance variable
- Global variable