JS โฉ statement โฉ expression โฉ operator โฉ binary โฉ comma (,)
(operator)
<expr1>, <expr2> // both expressions evaluated, last returned. // โญ๏ธ expressions can't be declarationsโ๏ธ
',' punctuator used in declaration syntax and comma operator.
','
for(let i=0, j=10; i < j; i++, j-- ) { ... } // โฐโโโโ 1 โโโโโฏ โฐโโ 2 โโโฏ // 1. let declaration // 2. comma operator
JS.info โฉ comma operator
JavaScript: The Definitive Guide โฉ 4.13.7 The comma Operator (,)
Does JavaScript have non-shortcircuiting boolean operators?
codepen โฉ non-shortcircuiting "or" ?
Last updated 2 years ago
Was this helpful?