Variable scope « Language Basics « Ruby






1.items declared in those methods are restricted to those methods.
2.Reference an undefined variable in a method
3.have two local variables with the same name but in different scopes
4.using only local variables
5.Local Variables versus Methods