comma (,)
punctuator `,`
Last updated
Was this helpful?
punctuator `,`
Last updated
Was this helpful?
⟩ ⟩ ⟩ ⟩ comma (,)
comma operator (,) - a, b
array literal - [1, 2, 3]
.
object literal - {x: 1, y: 2}
.
trailing comma - [1, 2, 3,]
, {x: 1, y: 2,}
.
variable declaration - let a = 1, b = 2;