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);
Written by Yuwei Ba
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Js
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#