Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumJavaScripttagged templatesSingle-choice MCQ

Given this tag function, what does the call produce?

function tag(strings, ...values) { return strings.length + '-' + values.length; } const a = 1, b = 2; console.log(tag`x${a}y${b}`);