title: Can you write 'for' two times?
body: <p>I've been trying to create list of months where <strong>id</strong> of every months has id written from <strong>months_id</strong>...</p>
  
  <pre><code>var months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"]
  var months_id = ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"]
  var cells = "";
  
  for (i = 0; i &lt;= 11; i++) {
          cells += "&lt;div id='" + months_id + "'&gt;" + months[i] + "&lt;/div&gt;";
  }
  document.getElementsByClassName("divMonths")[0].innerHTML = cells;
  </code></pre>
  
  <p>I've tried <code>for (i = 0 &amp;&amp; months_id = 0; i &lt;= 11 &amp;&amp; months_id &lt;= 0; i++ &amp;&amp; months_id++)</code></p>
  
  <p>and <code>for (i = 0; i &lt;= 11; i++) {
          for (months_id = 0; months_id &lt;= 11; months_id++) {//...}
       }</code></p>
  
  <p>but both methods didn't work.</p>
  
  <p>Is there any way how to write it correctly?</p>