Function Declarations

Functions can be declared (or defined) which can then be invoked (called) from anywhere within the script you defined it in. This has many important uses:

/* prototype
type functionName([type parameter1,] [...,] [type parameterN])
{
     // code block ...
     return value;
}
*/
string CombineStrings(string str1, string str2) 
{
     return str1 + str2;
}




 author: Ryan Hunt, editor: Charles Feduke
 Send comments on this topic.