Skip to content

Instantly share code, notes, and snippets.

@coderberry
Created August 23, 2012 02:31
Show Gist options
  • Select an option

  • Save coderberry/3431530 to your computer and use it in GitHub Desktop.

Select an option

Save coderberry/3431530 to your computer and use it in GitHub Desktop.
w2-e5.rb
>> hand = [ 'Ace', 'Jack', 'Queen', 'King' ]
=> ["Ace", "Jack", "Queen", "King"]
>> hand.class
=> Array
>> hand[2] # return the value at the 2nd index (3rd item)
=> "Queen"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment