You can use multi-line strings and string interpolation features with them. Template literals are enclosed by the back-tick (` `) (grave accent) character instead of double or single quotes. Template literals can contain place holders. These are indicated by the Dollar sign and curly braces (...
// Basic literal string creation `In JavaScript '\n' is a line-feed.` // Multiline strings `In JavaScript template strings can run over multiple lines, but double and single quoted strings cannot.` // String interpolation var name = "Bob", time = "today"; `Hello ${name}, how are ...
("image1x.png" 1x, "image2x.png" 2x); /* speech output: alternative text after a "/" */ content: url("../img/test.png") / "This is the alt text"; /* <string> value */ content: "unparsed text"; /* <counter> values, optionally with <list-style-type> */ content: ...
@@ -17,7 +17,7 @@ browser-compat: javascript.grammar.template_literals Template literals are literals delimited with backtick (\`) characters, allowing for [multi-line strings](#multi-line_strings), for [string interpolation](#string-interpolation) with embedded expressions, and for special con...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Appearance settings ...