variable
Try it yourself →Assigns a name to a value.
Syntax
name = value
Description
In Ruby, you don't specify types; they are automatically determined by the value. Variables start with lowercase letters.
Example
name = "Alex"
age = 36
puts "#{name} - #{age}"Expected output
Alex - 36
When to use?
Storing all kinds of data.