🔣brackets []
punctuator '[' and ']'.
JS ⟩ grammar ⟩ token ⟩ punctuator ⟩ bracket []
bracket notation [] -
a[1]
.optional chaining (?., ?.[]) -
obj ?. [prop]
.array literal -
[1,2,3]
.
Last updated
punctuator '[' and ']'.
JS ⟩ grammar ⟩ token ⟩ punctuator ⟩ bracket []
bracket notation [] - a[1]
.
optional chaining (?., ?.[]) - obj ?. [prop]
.
array literal - [1,2,3]
.
Last updated