Last active
January 1, 2016 03:29
-
-
Save karthiks/8086053 to your computer and use it in GitHub Desktop.
The Function Declaration 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
/* | |
The Pattern: | |
function name(param1, param2, .., paramN) { | |
//statements | |
} | |
*/ | |
//Example function declaration | |
function add(x, y) { | |
return x + y; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment