Skip to content

Instantly share code, notes, and snippets.

@sirramongabriel
Last active December 27, 2015 04:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sirramongabriel/7270371 to your computer and use it in GitHub Desktop.
Save sirramongabriel/7270371 to your computer and use it in GitHub Desktop.
# variable stores an array with two indexes
array = ["Hello", "Kitty"]
#two variables, each storing the value of an index from the array
first_index, second_index = ["Hello", "Kitty"]
first_index # => reuturns "Hello"
second_index # => returns "Kitty"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment