Skip to content

Instantly share code, notes, and snippets.

@BodieLeonard
Created August 21, 2018 21:24
Show Gist options
  • Select an option

  • Save BodieLeonard/54a3492259eb8f419073f0495a2f4940 to your computer and use it in GitHub Desktop.

Select an option

Save BodieLeonard/54a3492259eb8f419073f0495a2f4940 to your computer and use it in GitHub Desktop.
let sfService = (() => {
// private variables
// public variables
// private functions
// public functions
function getContacts() {
}
function getContact(id) {
}
function updateContact(id, languages) {
}
function newContact(firstName, lastName, languages) {
}
function deleteContact(id) {
}
// return object
return {
getContacts: getContacts,
getContact: getContact,
updateContact: updateContact,
newContact: newContact,
deleteContact: deleteContact
}
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment