Skip to content

Instantly share code, notes, and snippets.

@philpoore
Forked from anonymous/123.js
Last active March 5, 2016 22:06
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 philpoore/e762d13e8269a8085574 to your computer and use it in GitHub Desktop.
Save philpoore/e762d13e8269a8085574 to your computer and use it in GitHub Desktop.
function list() {
contacts.map(printPerson);
};
list();
Inside of the loop, add code to call printPerson, passing in the element of the array that the loop is currently at.
At the very bottom of the file, call the list function. The list function should then loop through every member of the contacts array and print its information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment