Skip to content

Instantly share code, notes, and snippets.

@piq9117
Last active August 25, 2016 00:36
Show Gist options
  • Save piq9117/7079ce3fddb2788970a5fb61b9235dd3 to your computer and use it in GitHub Desktop.
Save piq9117/7079ce3fddb2788970a5fb61b9235dd3 to your computer and use it in GitHub Desktop.
function favoriteFood (food) {
person.favoriteFood.push(food)
}
favoriteFood('ramen')
// { name: 'ken', favoriteFood: [ 'ramen' ] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment