nodejs function example

JavaScript
function functionName(arg1, arg2...) {
   // function body
   // optional return; 
} 
Source

Also in JavaScript: