Skip to content

Instantly share code, notes, and snippets.

@THEtheChad
Last active December 29, 2015 14:28
Show Gist options
  • Save THEtheChad/7683885 to your computer and use it in GitHub Desktop.
Save THEtheChad/7683885 to your computer and use it in GitHub Desktop.
var contacts = [];
function add( firstName, lastName, phone, email ){
contacts[ contacts.length ] = {
firstName : firstName,
lastName : lastName,
phone : phone,
email : email
};
}
add( 'John', 'Doe', '123-123-1234', '[email protected]');
add( 'Jane', 'Doe', '123-123-1234', '[email protected]');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment