title: How to use a JavaScript variable in a table layout?
body: <p>This is my code:</p>
  
  <pre><code>&lt;html&gt;
  &lt;script type="text/javascript"&gt;
      var data1 = "$100";
      var data2 = "$80";
  &lt;/script&gt;
  &lt;body&gt;
  
  &lt;table&gt;
    &lt;tr&gt;
      &lt;th&gt;Month&lt;/th&gt;
      &lt;th&gt;Savings&lt;/th&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;January&lt;/td&gt;
      &lt;td&gt;$100&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;February&lt;/td&gt;
      &lt;td&gt;$80&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I need to replace this $100 &amp; $80 with JavaScript variable data1 &amp; data2</p>
  
  <p>How to do that?</p>