title: Javascript li list from array with for loop
body: <p>I want to make <code>li</code> elements with properties like below but it doesn't work at all. Could you help me with what is wrong?</p>
  
  <pre><code>var array = [1, 2, 3, "mm", "b", "c", "mm", "y", "mm"];
  var list = document.getElementById("list");
  
  function addText(array) {
      for (var i = 0; i &lt;= array.length; i++); {
          var text = array[i];
          if (array[i] == "mm") {
              var listItem = document.createElement("LI");
              listItem.innerHTML = text;
              list.appendChild(listItem);
          }     
      }
  };
  </code></pre>