title: How would you turn a JavaScript variable into a Template literal?
body: <p>I would like to take text that I generated and stored in a string and use it like a template literal. </p>
  
  <pre><code>var generatedText = "Pretend this text was generated and then stored in a variable. "; 
  generatedText = "But I still need to use it as a template it to get ${variable}.";
  
  var variable = "Successs!!!!";
  
  console.log(generatedText);
  //prints 'But I still need to interpolate it to get ${variable}.'
  //how can I make it print using variable in it like a template as if it were doing this
  console.log(`But I still need to use it as a template it to get ${variable}.`);
  //prints 'But I still need to use it as a template it to get Successs!!!!.'
  </code></pre>
  
  <p>How can I get generated text to become a template string?  </p>
  
  <p>generatedText must start in a variable so I need to find a way to convert it to a template string if possible.</p>
  
  <p>Edit:</p>
  
  <p>I didn't think I would have to put this but also I don't want to use eval to risk evaluating random code...</p>