Last Updated: February 25, 2016
·
553
· xiaoba

An interesting style of calling anonymous function in JavaScript

(function(a){
    console.log(a);
    return arguments.callee; // return the function for next calling
})(1)(2)(3)(4);