Skip to content
Justice Tech School

Template Strings

Backticks allow ${} expressions and multi line text.

Example
const n = "Ada", a = 30;
console.log(`${n} is ${a} and next year ${a + 1}`);
console.log(`line1
line2`);

Result

Ada is 30 and next year 31
line1
line2

Exercise

Embed.

`Hi name}`

Quiz Test

What do backticks allow?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.