double quotes
- noun
- Specialized
- 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
Marks at the start and end of words that show someone's exact speech or writing
Small signs in writing used to show the exact words someone said or a short title like a song
Surface Forms
Morphology
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.