js running function as parameter

JavaScript
function FuncOne(param1) //example function
{
  //Do whatever
}

function FuncTwo(FuncOne, param1) //Function to call FuncOne w/ param
{
  FuncOne(param1); //Write it like you would any normal function call
}
Source

Also in JavaScript: