Created
November 27, 2014 09:39
-
-
Save bitboxx/16b9985bbe1232c07086 to your computer and use it in GitHub Desktop.
Standard Javascript function template
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
// This function does the following: | |
// + Thing 1 | |
// + Thing 2 | |
// + Thing 3 | |
// | |
// It takes the following parameters: | |
// + Parameter 1 | |
// + Parameter 2 (Optional) | |
// | |
// It returns: | |
// + null / nothing | |
function name(parameters) { | |
parameters = { | |
option1 : parameters.option1 || 'default value'; | |
option2 : parameters.option2 || true; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment