Template Literals
Syntax used inside backticks to embed a variable or expression directly into a string.
Understanding Template Literals in JavaScript
What it does: Backticks mark the start and end of a template literal. This syntax inserts the current value of score into the string. Template literals are wrapped in backticks (`), not single or double quotes. This correctly wraps text in backticks and embeds name with ${}. Interpolation requires curly braces: ${name}, not $name alone. Template literals can mix plain text and ${expression} freely. Expressions like a+b are evaluated inside ${} and inserted as text. The ${name} part embeds the variable's current value.
Common mistakes: Single quotes don't support ${} interpolation - use backticks. Use ${} not () for interpolation inside template literals.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 1–10) and word search (Modules 1–29).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Hi ${name} valid template literal syntax?Hi $name (without braces) interpolate the variable name?Match the Pairs
Key Term
${}Fill in the Blanks
Spot the Error
Student with a class code? Join your class →