Skip to content

Instantly share code, notes, and snippets.

@bitboxx
Created November 27, 2014 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bitboxx/16b9985bbe1232c07086 to your computer and use it in GitHub Desktop.
Save bitboxx/16b9985bbe1232c07086 to your computer and use it in GitHub Desktop.
Standard Javascript function template
// 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