Language syntax
Tagged template
Calls the tag with a template object followed by substitution values; the tag may return any value.
Formal Syntax & Structure
javascript syntaxjavascript
tag`text ${expression}`Working Example
Example Snippetjavascript
function tag(parts,n){return n*2;} console.log(tag`x=${3}`);