String templates
String template literals make it easy to create strings that include expressions or variables.
A template literal is enclosed in backticks (`
) instead of single or double quotes. This allows you to embed expressions inside the string using ${...}
.
You can embed arbitrary expressions in a template literal.