title: Display value from array in html without commas , using javascript
body: <p>I have an array containing user inputs and I want to display the last five inputs from the array in HTML:</p>
  
  <pre><code>function display_last_five()
   {
     var e = "&lt;hr/&gt;";   
       e += array.slice(Math.max(array.length - 5, 0)) + " ";
     document.getElementById('Result').innerHTML = e;
  }
  </code></pre>
  
  <p>What I get:</p>
  
  <pre><code>Input1,Input2,Input3
  </code></pre>
  
  <p>What I want:</p>
  
  <pre><code>Input1 Input2 Input3
  </code></pre>
  
  <p>In there a way to manipulate the output or is the input stored incorrect?</p>