Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #29002

Re: And Another function Question

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: And Another function Question
Date 2015-12-10 00:26 +0100
Organization PointedEars Software (PES)
Message-ID <11602512.mtjsSYLier@PointedEars.de> (permalink)
References <34ug6btki29u124smhr293cd4j8cu31de8@4ax.com>

Show all headers | 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


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