title: Click to add sentence + array number and result with <br> on each line
body: <p>I'm starting to learn how to code and I guess this is really easy for you but it's been VERY hard for me to find out on how to do it. </p>
  
  <p>I want to be able to add a number on and store that number and get a result like this:</p>
  
  <p>Lets say I typed number 2, then 34, then 65 and 234.</p>
  
  <p>Result would be like:</p>
  
  <pre><code>&lt;integer&gt;2&lt;/integer&gt;
  &lt;integer&gt;34&lt;/integer&gt;
  &lt;integer&gt;65&lt;/integer&gt;
  &lt;integer&gt;234&lt;/integer&gt;
  </code></pre>
  
  <p>Do you see what i mean? I need to have the integer string plus whatever number I type and the result would need to add an br. </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>function myFunction() {
    var x = parseFloat(document.getElementById("numb").value);
    var result = document.getElementById("result");
    var array = [];
  
    array.push("&lt;integer&gt;" + x + "&lt;/integer&gt;");
    console.log(array);
    result.innerHTML = array;
  
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;h1&gt;Integer&lt;/h1&gt;
  &lt;h2&gt;Enter number&lt;/h2&gt;
  
  &lt;input type="number" id="numb"&gt;
  &lt;button id="submitbutton" type="button" onclick="myFunction()"&gt;Submit&lt;/button&gt;
  
  
  &lt;h1&gt;
    &lt;div&gt;Result: &lt;span id="result"&gt; xxx &lt;/span&gt;&lt;/div&gt;
  &lt;/h1&gt;</code></pre>
  </div>
  </div>
  </p>