How to understand the brackets in the last line and how to call the function.
I think it would be fun()(1,1,handle);
if there is no ();
at last but what's the ();
mean?
var handle = function(boolean){
alert(boolean);
}
var fun = function(){
// Some definition
// Some function
return function(a,b,handle) {
// Some process
if (a == b) {
handle(true);
} else {
handle(false);
}
}
}();