Variables
Goals
Step 1
Type this in the terminal:irb
Step 2
Type this in irb:my_variable = 5Type this in irb:my_variableExpected result:5Type this in irb:another_variable = "hi"
Step 3
Type this in irb:my_variable = 10Type this in irb:my_variableExpected result:10
Step 4
Type this in irb:apples = 5 bananas = 10 + 5 fruits = 2 + apples + bananas bananas = fruits - apples
Step 5
Type this in irb:local_variablesExpected result:[:bananas, :fruits, :apples, :another_variable, :my_variable]
Step 6
Type this in irb:true = false 1 = 1 "a" = 1
Step 7
Step 8
Type this in irb:shouting = "hey, you!".upcase
Explicación
Next Step:
Go on to Datatypes