Check out example codes for "variables in ruby". It will help you in understanding the concepts better.

Code Example 1

variable_name = 10
variable_name = "ten"

Code Example 2

var_name = "value"

Learn ReactJs, React Native from akashmittal.com