title: How to append text from array in paragraph in javascript?
body: <p>How to append paragraph with text from array?</p>
  
  <p>First I put element in array:</p>
  
  <pre><code>var iminja = [];
  iminja.push("Name1");
  </code></pre>
  
  <p>Then I use <code>for</code> loop for each element in array "iminja" where I want to put new paragraph to existing empty <code>div</code> with the text from the array. Something like this, which is just to explain you how I want to be the final result in function: </p>
  
  <pre><code>$('#existingDiv').append('&lt;p style="border: 1px solid black;"&gt;iminja[index]&lt;/p&gt;');
  </code></pre>
  
  <p>Can someone help me for this?</p>