From 86db3e0e46790f754775a626cd0f0667806abc67 Mon Sep 17 00:00:00 2001 From: aaqibjavaid Date: Mon, 23 Dec 2024 22:03:59 +0530 Subject: [PATCH] fix: tagged templates code example --- questions/explain-the-concept-of-tagged-templates/en-US.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/questions/explain-the-concept-of-tagged-templates/en-US.mdx b/questions/explain-the-concept-of-tagged-templates/en-US.mdx index 92e1397..ecada6d 100644 --- a/questions/explain-the-concept-of-tagged-templates/en-US.mdx +++ b/questions/explain-the-concept-of-tagged-templates/en-US.mdx @@ -8,7 +8,7 @@ Tagged templates in JavaScript allow you to parse template literals with a funct ```js function tag(strings, ...values) { - return strings[0] + values[0] + strings[1] + values[1]; + return strings[0] + values[0] + strings[1] + values[1] + strings[2]; } const result = tag`Hello ${'world'}! How are ${'you'}?`;