Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #22457
| From | Denis McMahon <denismfmcmahon@gmail.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: How to understand return a,b statement ? |
| Date | 2013-12-28 20:54 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <l9ndpk$d2v$1@dont-email.me> (permalink) |
| References | <ec287c43-ac92-489e-8140-55272ace07bb@googlegroups.com> <1368da15-53d4-457c-9ee1-3e9f90b677d2@googlegroups.com> <l9n3ka$d47$1@speranza.aioe.org> |
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':[]};
--
Denis McMahon, denismfmcmahon@gmail.com
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