JavaScript Template Strings

Categories:

Template literals

1`text${expression}text`

Tagged templates

1function tagFunction(strings, arg) {
2    return `${strings[0]}${arg}${strings[1]}`
3}
4
5tagFunction`text${expression}text`

See Also