---
title: "Comment by Victor Souza on \"Understanding tagged template literals in JavaScript\" | Hashnode"
description: "Clearly explained! thanks for sharing it✨✨ I&#39;ll play with it more later :) function bold ( strings, ...args ) { return [strings, args[ 1 ](args[ 0 ])]; } co"
url: "https://hashnode.com/posts/understanding-tagged-template-literals-in-javascript/623f461b2209c88a3de91eb2/comment/623faede2209c88a3de92690"
---

[Discussion](https://hashnode.com/posts/understanding-tagged-template-literals-in-javascript/623f461b2209c88a3de91eb2)

Comment [Understanding tagged template literals in JavaScript](https://hashnode.com/posts/understanding-tagged-template-literals-in-javascript/623f461b2209c88a3de91eb2)

[Victor Souza](https://hashnode.com/@victor0x16)

[Mar 27, 2022](https://hashnode.com/posts/understanding-tagged-template-literals-in-javascript/623f461b2209c88a3de91eb2/comment/623faede2209c88a3de92690)

**Clearly explained!** thanks for sharing it✨✨

I'll play with it more later :)

```
function bold(strings, ...args) {
    return [strings, args[1](args[0])];
}

const html = bold`7^2 =${7}${function square(x) { return x*x; }}`;
console.log(html.join(" "));
```
