User Program Communication
Functions and Blocks
Object Oriented Programming
Local Variable Declaration in Ruby
Used to declare a variable outside of a class.
#local variable variableName = value #for class variables, look at the class and instance variables topic
Variables in Ruby are dynamically typed, which means no type is assigned to the variable.
All variables in Ruby are objects, which means methods can be invoked from the variable. In fact, everything in Ruby is an object.
name = "Anthony"