Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #29002
| Path | csiph.com!news.mixmin.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: And Another function Question |
| Date | Thu, 10 Dec 2015 00:26:08 +0100 |
| Organization | PointedEars Software (PES) |
| Lines | 24 |
| Message-ID | <11602512.mtjsSYLier@PointedEars.de> (permalink) |
| References | <34ug6btki29u124smhr293cd4j8cu31de8@4ax.com> |
| Reply-To | Thomas 'PointedEars' Lahn <cljs@PointedEars.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="UTF-8" |
| Content-Transfer-Encoding | 8Bit |
| X-Trace | solani.org 1449703569 13397 eJwNycEBwCAIA8CVREgC41jU/Uew9z04ja0gGLi4C54ehdGyT+xErz/lQRswFnxvzWM5T0nzAfhzD5M= (9 Dec 2015 23:26:09 GMT) |
| X-Complaints-To | abuse@news.solani.org |
| NNTP-Posting-Date | Wed, 9 Dec 2015 23:26:09 +0000 (UTC) |
| User-Agent | KNode/4.14.2 |
| X-User-ID | eJwNyskRwEAIA7CWgNjebDkMR/8lJHqLj1x1IApcrnVzWLgMovBGj5XDKngUiBTb7fxLmTRfxcwVn2zE3f4AOsEU9w== |
| Cancel-Lock | sha1:aGkkf+eZq4Ygf0n3NcJ2jGgY6Gk= |
| X-NNTP-Posting-Host | eJwNxskBwCAIBMCW5NhVygGR/ktI5jUwCu92go7BqEo2GT592vrB9ztVUZqQrKXXloRrzn/lfB+IER0= |
| Xref | csiph.com comp.lang.javascript:29002 |
Show key headers only | View raw
Gene Wirchenko wrote:
> 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. The proper term is “anonymous function (expression)” rather than
“unnamed function”.
> What is a good reference for this? I am willing to put in study
> time, but I do not even know where to start.
<https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Functions#Function_expressions>
Also referred to by – you probably have guessed it – the FAQ.
--
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not cc me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
And Another function Question Gene Wirchenko <genew@telus.net> - 2015-12-09 10:55 -0800
Re: And Another function Question Luuk <luuk@invalid.lan> - 2015-12-09 21:13 +0100
Re: And Another function Question RobG <rgqld@iinet.net.au> - 2015-12-09 19:23 -0800
Re: And Another function Question Luuk <luuk@invalid.lan> - 2015-12-10 20:06 +0100
Re: And Another function Question Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2015-12-09 18:50 -0200
Re: And Another function Question Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-12-09 21:47 +0000
Re: And Another function Question Ben Bacarisse <ben.usenet@bsb.me.uk> - 2015-12-10 01:10 +0000
Re: And Another function Question Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-12-10 00:26 +0100
csiph-web