title: insert js variable into html href tag
body: <p>Essentially, trying to pass different (string) values to a variable</p>
  
  <pre><code>if (result == "A")
          finalLink.push("https://pool.wikitolearn.org/images/pool/d/d0/Not-giant-enough-letter-a.jpg");
  if (result == "B")
          finalLink.push("https://img.clipartfest.com/a354883c247102b05c1657698b7bc8ed_-letters-b-23-b-boyjpg-the-letter-b-clipart_205-257.jpeg");
  if (result == "C")
          finalLink.push("http://dailydropcap.com/images/C-9.jpg");
  </code></pre>
  
  <p>and then send the variable to html href tag</p>
  
  <pre><code>&lt;a id="button" href="finalLink"&gt;Click me to be redirected to your answer&lt;/a&gt;
  </code></pre>
  
  <p>don't know much javascript but in PHP you can do this by adding {{variableHere}}</p>