This is the way it works:
var a = function myFunc(parameter){
var var2="another thing";
parameter.call();
}
a(function(){console.log("the function parameter")})
This is the way it works:
var a = function myFunc(parameter){
var var2="another thing";
parameter.call();
}
a(function(){console.log("the function parameter")})