Nov
          24
          2015
        Custom Functions
          By abernal          
              
       
    Functions in java script have the following structure
Syntax
function <nameOfTheFunction> (<parameterA>, <parameterB>, ...) {
   // Some code here
   return *some value to return*;
}
Sample