Skip to content

Instantly share code, notes, and snippets.

@rpearce
Last active September 13, 2015 16:32
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 rpearce/0601e098dd1473c60407 to your computer and use it in GitHub Desktop.
Save rpearce/0601e098dd1473c60407 to your computer and use it in GitHub Desktop.
Interpolation & Hash Accessing Challenge
# Your task is to use the `people` array of hashes below
# to create interpolated strings that will `puts` to the
# console the following lines:
#
# James, aged 82, is from Charleston, SC
# Jane, aged 67, is from New York, NY
# Jude, aged 42, is from London, UK
people = [
{ name: 'James', age: '82', location: 'Charleston, SC' },
{ name: 'Jane', age: '67', location: 'New York, NY' },
{ name: 'Jude', age: '42', location: 'London, UK' }
]
# your code here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment