← BYTES
JavaScript·Starter·Ref: 3.1.11
What is a template literal (backtick string) used for?
Have a question about this video? Mention reference 3.1.11 when you contact us.
a.Only for multi-line comments
b.Creating strings with embedded expressions via `${...}` and support for multi-line text without escape characters
c.Declaring a new data type
d.Compiling JavaScript to a template engine format
Template literals (delimited by backticks) support `${expression}` interpolation directly inside the string and allow literal newlines, replacing the older, clunkier pattern of string concatenation with `+`.
Find this on YouTube & Instagram
Every BYTES video is tagged with its reference number and topic — search any of these on YouTube or Instagram to find this one:
#BYTES#BYTES3111#JavaScript