String Interpolation

Placing an expression inside ${} so its value becomes part of a template literal.

What is String Interpolation in JavaScript?

String Interpolation — Placing an expression inside ${} so its value becomes part of a template literal.

const item = "tea";
const message = `Order: ${item}`;

Level: Novice · More JavaScript terms at this level

Updated

In other subjects