title: Why removing only even/odd childs inside of double loop
body: <p>Let's consider the following code</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>var ULs = document.getElementsByTagName('ul');
  for(var i = 0; i &lt; ULs.length; i++) {
   var ulLIs = ULs[i].getElementsByTagName('li');
   for(var n = 0; n &lt; ulLIs.length; n++) {
    ulLIs[n].parentNode.removeChild(ulLIs[n]);
   }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;ul&gt;
   &lt;li&gt;1-1&lt;/li&gt;
   &lt;li&gt;1-2&lt;/li&gt;
   &lt;li&gt;1-3&lt;/li&gt;
   &lt;li&gt;1-4&lt;/li&gt;
  &lt;/ul&gt;
  &lt;ul&gt;
   &lt;li&gt;2-1&lt;/li&gt;
   &lt;li&gt;2-2&lt;/li&gt;
   &lt;li&gt;2-3&lt;/li&gt;
   &lt;li&gt;2-4&lt;/li&gt;
  &lt;/ul&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>As you see, JavaScript removes only even or odd childs. But I need remove all the childs.</p>
  
  <p>How can I do it?</p>