Skip to main content
double quotes

double quotes

3.2
Two quotation marks used to mark the start and end of a text string in code
  • noun
  • Specialized
translation icon : comillas dobles
  • To include a quote in a string, you can escape the double quotes by preceding them with a backslash.

Examples

  • In programming, you need to use double quotes to define a string, like 'Hello, World!'.

  • So I printed out as a string and sure enough the grammar is one rule and it says quote X quote that means input X, double quote Y, double quote output Y.

  • When creating JSON data, strings must be enclosed in double quotes for the format to be valid.

Synonyms

quote
vsdouble quotes
305 2.3

Marks at the start and end of words that show someone's exact speech or writing

is the programming use for marking strings rather than attributing speech
quotation mark
vsdouble quotes
8 1.1

Small signs in writing used to show the exact words someone said or a short title like a song

is used specifically in programming to mark string literals or quoted tokens

Surface Forms

double quotes plural

Morphology

double + quote

The meaning 'a pair of quotation marks' is directly and transparently derived from 'double' (twofold) plus 'quotes' (quotation marks); a B1 learner who knows both words can infer it refers to two quotation marks used to mark quoted text or string literals. This compositional pattern is common and parallels expressions in many other languages, so prior exposure is not required for understanding.

Etymology

Double quotes in programming comes from the simple image of two marks that 'hold' a piece of text, one at the start and one at the end. The two marks—double (two) and quotes (the marks around words)—show a 'string' in code so the computer knows where the text begins and ends.