I want to create "foo" function which has a callback as argument, and also wanted the callback to have two arguments as mentioned below. I tried, but didn't get a solution yet.
it doesn't have any usecase it's just a challenge for myself :)
function foo(callback){
callback();
}
foo((arg1,arg2)=> {
arg1=0;
arg2=1;
});
what should i do?
foo?