Created
December 28, 2018 10:48
-
-
Save h3nr1ke/b9598c4264bb61e7079c0546a7f604d4 to your computer and use it in GitHub Desktop.
Function example
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
/** | |
* | |
*/ | |
// Function in old style | |
function _myCoolFunction(param1, param2){ | |
return param1 + param2; | |
} | |
// we can also declare it as a variable | |
var _myOtherCoolFunction = function(param1, param2){ | |
return (2 * param1) + param2; | |
}; | |
// END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment