write cell data to a html table using innerHTML
<p>having trouble putting together the final function displayLetter(a,b,c,d,e,f,g) and writing to table with innerHTML with array element and variables in variableTest() I know I need to use .length and to determine how many cells I need. W3C only gets me so far. Thanks for the help!</p>

<pre><code> &lt;html&gt;
 &lt;head&gt;
 &lt;title&gt;
 &lt;/title&gt;
 &lt;script&gt;
 &lt;/script&gt;
 &lt;/head&gt;
 &lt;body&gt;
 &lt;h1&gt;TEST THIS SCRIPT&lt;/h1&gt;
 &lt;table border="1"&gt;
 &lt;tr&gt;
 &lt;th&gt;A&lt;/th&gt;
 &lt;th&gt;B&lt;/th&gt;
 &lt;th&gt;C&lt;/th&gt;
 &lt;th&gt;D&lt;/th&gt;
 &lt;th&gt;E&lt;/th&gt;
 &lt;th&gt;F&lt;/th&gt;
 &lt;th&gt;G&lt;/th&gt;
 &lt;/tr&gt;
 &lt;a href="add data" id="reload"&gt;Add Employee&lt;/a&gt;
 &lt;/body&gt;
 &lt;html&gt;
</code></pre>

<p>MY JS:</p>

<pre><code> function addData()
 {
 var testarray = new Array();
 testarray[0] = window.prompt("Enter a letter","z");
 variableTest(x,y);
 displaySalary(a,b,c,d,e,f,g);
 }


 function variableTest(x,y)
 {

 a=1;
 b=2;
 c=3;
 d=4;
 e=5;
 }


 displayLetter(a,b,c,d,e,f,g)
 {

 }
</code></pre>
