Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #22474
| Message-ID | <1596269.Jb2yfOpZAA@PointedEars.de> (permalink) |
|---|---|
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
| Organization | PointedEars Software (PES) |
| Date | 2013-12-29 17:25 +0100 |
| Subject | Re: How to understand return a,b statement ? |
| Newsgroups | comp.lang.javascript |
| References | <ec287c43-ac92-489e-8140-55272ace07bb@googlegroups.com> <1368da15-53d4-457c-9ee1-3e9f90b677d2@googlegroups.com> <l9n3ka$d47$1@speranza.aioe.org> <l9ndpk$d2v$1@dont-email.me> |
Denis McMahon wrote:
> On Sat, 28 Dec 2013 16:00:46 -0200, Joao Rodrigues wrote:
>> According to Douglas Crockford's book (JavaScript: The Good Parts), the
>> comma operator should be used only inside for statements
>
> If I might suggest another use of the comma:
>
> var a=2, b=6, c="fred", d={'time':0,amount:'0','items':[]};
Those are commas, but not comma operators.
--
PointedEars
Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to understand return a,b statement ? Guillaume Biton <guillaume.biton@gmail.com> - 2013-12-28 08:57 -0800
Re: How to understand return a,b statement ? Guillaume Biton <guillaume.biton@gmail.com> - 2013-12-28 09:03 -0800
Re: How to understand return a,b statement ? Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2013-12-28 16:00 -0200
Re: How to understand return a,b statement ? Denis McMahon <denismfmcmahon@gmail.com> - 2013-12-28 20:54 +0000
Re: How to understand return a,b statement ? Joao Rodrigues <groups_jr-1@yahoo.com.br> - 2013-12-28 23:16 -0200
Re: How to understand return a,b statement ? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-12-29 17:25 +0100
Re: How to understand return a,b statement ? Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-12-29 18:22 +0000
csiph-web