amazing function returning function in javascript

i just got some actionscript/javascript code where function returns the function. Confusing at first but really provided with amazing function call syntax:<script>outer=function(a,b){alert(a+b);inner=function(a,b){ alert(a+b); return inner}return inner;}outer(12,12)(12,3)(1,1)(1,1)(12,23);</script>

Leave a Reply

Security Code: