Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 651 Bytes

language_string_literal.mdx

File metadata and controls

33 lines (24 loc) · 651 Bytes
idkeywordsnamesummarycategory
string-literal
string
""
This is the `string` literal syntax.
languageconstructs

A string literal is composed of two double quotes. Single quotes are reserved for the char type.

Example

<CodeTab labels={["ReScript", "JS Output"]}>

letmyString="Single line "++"string!"letmyMultiLineString="Multi line string!"
varmyString="Single line string!";varmyMultiLineString="Multi\n line\n string!";

References

close