I'm trying writing down a function which will do something then bind a callback when finished, I would like to specify the callback when I init the js function...
function hello(arg1,arg2,callback){
alert(arg1 + arg2);
callback;
}
hello('hello','world',function callback(){
alert('hey 2);
});
sorry for banal question, I'm trying to understand how to pass a callback function to a function.