What does ${} (dollar sign and curly braces) mean in a string in Javascript? What does ${} (dollar sign and curly braces) mean in a string in Javascript? javascript javascript

What does ${} (dollar sign and curly braces) mean in a string in Javascript?


You're talking about template literals.

They allow for both multiline strings and string interpolation.

Multiline strings:

console.log(`foobar`);// foo// bar