title: how to set while loop counter to start at 1, not 0
body: <p>Here's my code:</p>
  
  <pre><code>function listDesserts (){
      var dessertList = ["pudding", "cake", "toffee", "ice cream", "fudge", "nutella"];
  
      var i = 0;
      while (i&lt; dessertList.length){
          var ul = document.getElementById("thelist");
          var nli = document.createElement("li");
          var nliID = 'item-' +i;
          nli.setAttribute('id', nliID);
          nli.setAttribute('class', 'listitem');
          nli.innerHTML = dessertList[i];
          ul.appendChild(nli);
          i++;
      }
  }
  </code></pre>
  
  <p>Since I'm setting the li tags IDs based on the number items in my array, i sets it to zero as it should.  Rather I want to modify i so that it sets the IDs beginning with 1 without it skipping the first array member.  I've tried a few things but I'm missing this.  Anybody?</p>