How to instantiate an array when a user inputs?
<p>When a user inputs text I want to create an array with the name of the inputted text and add it to array logNum. I've tried like this but it doesn't work:</p>

<pre><code>logNum.push(var document.getElementById("buttonInput").value.toString()[]);
</code></pre>

<p>Any ideas?</p>
