Colon (:) (Delimiter)

A delimiter used with labels and conditional operators.

Availability:

ECMAScript edition - 2
JavaScript - 1.2
JScript - 3.0
Internet Explorer - 4.0
Netscape - 4.0

This delimiter is used with the case keyword and the default keyword in switch statement blocks.

Refer to the switch topic for details of how this is used.

See also:switch( ... ) ... case: ... default: ...