Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jallmann
on Oct 1, 2011
|
parent
|
context
|
favorite
| on:
The JavaScript Comma Operator
The ternary operator has its uses, such as in assignment.
var foo = bar ? a : b;
JoelMcCracken
on Oct 1, 2011
[–]
That's what he means by control structure instead of selection.
Consider applying for YC's Winter 2027 batch!
Applications
are open till November 2.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: