title: How to display an element of an array from .js file in .html paragraph
body: <p>I'm trying to make a javascript function that displays different string every 7 days for example. And I want to display that string in a footer of an html.
  The part that bugs me is how to insert that string in a paragraph in html (or anything that will display the text).
  I have 2 dimensional array in .js, let's say:</p>
  
  <pre><code>array = [[first1,first2],[second1,second2],[third1,third2],[fourth1,fourth2],[fifth1,fifth2]]; 
  </code></pre>
  
  <p>And I want do display, let's say</p>
  
  <pre><code>array[2][0] in one paragraph and
  array[2][1] in another paragraph. 
  </code></pre>
  
  <p>let's say</p>
  
  <pre><code>&lt;div&gt;
      &lt;p&gt;In here i want array[2][0]&lt;/p&gt;
      &lt;p&gt;In here i want array[2][1]&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Please help.</p>