title: How to render list items inside unordered list
body: <p>My goal is to render the strings in the array based on it's length, but it's not rendering anything below the button. Can you help me find what is happening?</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>let myLeads = ["stackoverflow.io", "you.com"]
  let myLeads = ["stackoverflow.io", "you.com"]
  const inputEl = document.getElementById("input-el")
  const inputBtn = document.getElementById("input-btn")
  const ulEl = document.getElementById("ul-el")
  
  inputBtn.addEventListener("click", () =&gt; {
      myLeads.push(inputEl.value)
      console.log(myLeads)
  })
  
  for (let i = 0; i &lt; myLeads.legnth; i++) {
      ulEl.innerHTML += "&lt;li&gt;" + myLeads[i] + "&lt;/li&gt;"
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;body&gt;
    &lt;input type="text" id="input-el"&gt;
    &lt;button id="input-btn"&gt;Save Company&lt;/button&gt;
    &lt;ul id="ul-el"&gt;&lt;/ul&gt;
    &lt;script src="index.js"&gt;&lt;/script&gt;
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>