
In this part, you will learn about four of them, spread operator, rest parameter, sets and object literal.

Web templates (data): HTML with blanks to be filled in.Tagged template literals (code): function calls.Template literals (code): multi-line string literals that support interpolation.It is therefore important to distinguish: These two literals have similar names and look similar, but they are quite different.

Weren’t template literals once called template strings?ĮS6 has two new kinds of literals: template literals and tagged template literals. Why are backticks the delimiters for template literals? Can I load a template literal from an external source? What is the difference between macros and tagged template literals? Where do template literals and tagged template literals come from? FAQ: template literals and tagged template literals Example: implementing a tag function for HTML templating Escaping in tagged template literals: cooked versus raw Number of template strings versus number of substitutions Text templating via untagged template literals Examples of using tagged template literals
Line terminators in template literals are always LF ( \n)
