Created
August 21, 2018 21:24
-
-
Save BodieLeonard/54a3492259eb8f419073f0495a2f4940 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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