title: Push user input to array
body: <p>Hi so yes this is a previous issue i have had, i have hit the books and whent back to basics adjusted a few things but im still having trouble getting the input value to push to the array can some one please help me get my head around this thanks</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  
   &lt;body&gt;
    &lt;script type="text/javascript"&gt;
     var number=["1"]
     function myFunction()
     {
      var x=document.getElementById("box");
       number.push=document.getElementById("input").value;
      x.innerHTML=number.join('&lt;br/&gt;'); 
     }
    &lt;/script&gt;
   &lt;form&gt;
    &lt;input id="input" type=text&gt;
     &lt;input type=button onclick="myFunction()" value="Add Number"/&gt;
    &lt;/form&gt;
  
   &lt;div id="box"; style="border:1px solid black;width:150px;height:150px;overflow:auto"&gt; 
    &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>