🔣comma (,)
punctuator `,`
JS ⟩ grammar ⟩ token ⟩ punctuator ⟩ comma (,)
comma operator (,) -
a, barray 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;
Last updated
Was this helpful?