title: Is it possible to predefine the template literal in ECMAScript 6 and reuse many times?
body: <p><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals" rel="nofollow noreferrer">template literal</a></p>
  <p>For example,</p>
  <pre><code>//define a template literal
  let template = `Hello {target}`;
  
  //Then reuse it, just examples to show the idea
  let str1 = Format(template, &quot;World&quot;);//str1 becomes &quot;Hello World&quot;
  let str2 = Format(template, &quot;There&quot;);//str2 becomes &quot;Hello There&quot;
  let str3 = Format(template, &quot;There Again&quot;);//str3 becomes &quot;Hello There Again&quot;
  </code></pre>
  <p>BTW, it's a common practice to reuse template string by <a href="https://docs.microsoft.com/en-us/dotnet/api/system.string.format" rel="nofollow noreferrer"><code>string.Format</code></a> in C#:</p>
  <pre class="lang-cs prettyprint-override"><code>string template = `Hello {0}`;
  string str1 = string.Format(template, &quot;World&quot;);//str1 becomes &quot;Hello World&quot;
  string str2 = string.Format(template, &quot;There&quot;);//str2 becomes &quot;Hello There&quot;
  string str3 = string.Format(template, &quot;There Again&quot;);//str3 becomes &quot;Hello There Again&quot;
  </code></pre>
  <p>The question is, can it be done with ES6?</p>