Skip to content

Instantly share code, notes, and snippets.

Created March 5, 2016 21:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/f82cd9798d85ed42a271 to your computer and use it in GitHub Desktop.
Save anonymous/f82cd9798d85ed42a271 to your computer and use it in GitHub Desktop.
function list() {
var contactsLength = contacts.length;
for (var i = 0; i < contacts.length; i ++) {
}
};
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