Dit is mijn functie
function myFunction(params)
{
if(params.calculate === 'function')
{
// Do something calculate a som ......
var som = 10 + 10;
return this.calculate = som
}
}
En zo roep ik de functie aan
myFunction({
calculate : function(data)
{
alert(data);
}
});
Weet iemand hoe ik nu het antwoord als data terug krijg in de functie aanroep.