diff --git a/misc_docs/syntax/language_string_interpolation.mdx b/misc_docs/syntax/language_string_interpolation.mdx new file mode 100644 index 000000000..de5f8fc67 --- /dev/null +++ b/misc_docs/syntax/language_string_interpolation.mdx @@ -0,0 +1,34 @@ +--- +id: "string-interpolation" +keywords: ["string", "interpolation"] +name: "``" +summary: "This is the `string interpolation` syntax." +category: "languageconstructs" +--- + +A `string interpolation` is composed of two backticks. It allows Unicode characters and embeddable values and expressions with the `${myValue}` syntax. + +### Example + + + +```res +let language = "ReScript" + +let exclamation = `${language} is pretty cool. +Right? +šŸŽ‰ +` +``` + +```js +var language = "ReScript"; + +var exclamation = language + " is pretty cool.\nRight?\nšŸŽ‰\n"; +``` + + + +### References + +* [String interpolation](/docs/manual/latest/primitive-types#string-interpolation)