We'd like to use analytics cookies to understand which symbols people look up, so we know what to research next. They are not used for advertising and we set none of them unless you say yes. What we store.
Punctuation that asks a question, and an operator that chooses between two values.
As punctuation it ends an interrogative sentence. In code it opens a three-part choice: a condition, then the value if true, a colon, then the value if false. The colon is the tell — a question mark with a colon later on the same line is an operator, not a question.
The question mark is the punctuation; the ternary operator is one of the jobs programming languages give it.
Drawn from the visual attributes recorded for each symbol. Only traits the two records disagree about are listed.
| Trait | Question mark | Ternary conditional operator |
|---|---|---|
| Built from | lines and dots, abstract | lines and dots |
| Question mark | Ternary conditional operator | |
|---|---|---|
| Read by | A person | A compiler or interpreter |
| Needs a colon | No | Yes |
| Operands | — | Three, which is where the name comes from |
| Doubled form | — | Two question marks is the null coalescing operator |
| Relationship (from Symbolwise's records) | Commonly confused with Ternary conditional operator — The question mark is the punctuation; the ternary operator is one of the jobs programming languages give it. | Commonly confused with Question mark — The question mark is the punctuation; the ternary operator is one of the jobs programming languages give it. |
Unicode Code Chart: Basic Latin (U+0000–U+007F)
The Unicode Consortium · retrieved 2026-07-30
Authoritative for the character's code point, name and block only. Unicode assigns identity; it does not define what a symbol means in use.
ECMA-262, ECMAScript Language Specification
Ecma International · retrieved 2026-08-01
Authoritative for JavaScript's own syntax and only for that. A construct spelled the same way in another language may behave differently, and records say which language they are describing.
Wikipedia · retrieved 2026-08-01
Tertiary reference. Used for widely-agreed identity, origin and current use, not for contested detail or exact dates.
Both are drawn as one continuous decorative stroke with a closed loop and a tail that crosses back over itself, which is why a description of the shape alone reaches both. The clef is far taller, spans a stave, and its spiral encircles one specific line — that encircled line is the note G, and it is the only reason the shape is drawn where it is.
The ampersand is a ligature of the Latin word et, still visible in some italic forms where the e and the t can be picked out. The Tironian et is a separate mark descending from a Roman shorthand, shaped like a small seven, and it is in daily public use in Ireland as the written form of 'agus'. A reader who knows only the ampersand takes the other for a numeral, which on a bilingual road sign produces a confidently wrong place name.
A building's assembly point is a safe place to stand once you are outside. A ship's muster station is a staffed step in a procedure: you are counted against a roll, briefed, and if necessary allocated to a survival craft, which is why it has a letter or a number and appears on your cabin door card. Both are green, both show grouped figures, and both are called an assembly point in ordinary speech — and treating a muster station as somewhere merely to wait is the misunderstanding drills exist to correct.
As punctuation the asterisk points at a footnote or marks a required field. In a filename pattern typed at a shell it matches any run of characters, including none — and the shell expands it against real filenames before the command runs, so the command never sees the pattern at all. That expansion is the part people are surprised by.