Path: csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: And Another function Question Date: Wed, 09 Dec 2015 21:47:57 +0000 Organization: A noiseless patient Spider Lines: 21 Message-ID: <87a8pj47le.fsf@bsb.me.uk> References: <34ug6btki29u124smhr293cd4j8cu31de8@4ax.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx02.eternal-september.org; posting-host="017616aa25f81ec581c44d76d61ba2f3"; logging-data="24547"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18DwUll5+g+Xt6hf9ykzTaKSQgdkQYAIZ8=" Cancel-Lock: sha1:ObZ7LhPWD9DnXPjDFjbUC4l4BOs= sha1:NIkcCfyPGl0VSEzS6STCl6GAW/M= X-BSB-Auth: 1.96dc53cdd39d2e94b886.20151209214757GMT.87a8pj47le.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:29000 Gene Wirchenko writes: > What does (contrived example follows) > (function(a,b,c){some_code})(1,2,3); > mean? > > Is this to define an unnamed function with code some_code and > then immediately call it with the parms 1,2,3? Yes. > What is a good reference for this? I am willing to put in study > time, but I do not even know where to start. Sorry, I can't help there. The general notion -- that of anonymous functions -- is found in many languages. If you knew, for example, Lisp, almost nothing in EcmaScript would be new to you, but you probably want a language specific reference, and I have not researched that. -- Ben.