irb
Goals
- Understand the difference between irb and the command line
- Understand how and when to use irb
- Execute some simple ruby statements
Step 1
Type this in the terminal:irb
Step 2
Type this in irb:5 + 9 109 / 17 2 ** 8 5 > 6
Step 3
Type this in irb:1 + 2Expected result:1.9.3p125 :015 > 1 + 2 => 3 1.9.3p125 :016 >
Step 4
Type this in irb:exit
Explanation
Next Step:
Go on to Variables
Back to Command Line