🔣colon (:)
punctuator `:`
JS ⟩ grammar ⟩ token ⟩ punctuator ⟩ colon (:)
object literal -
{ <key> : <value> }.conditional operator (?:) -
<condition> ? <a> : <b>.label statement -
<label> : <statement>.switch (case clause) -
case <expr> : <statements>.
Last updated
Was this helpful?