title: How can i fix this problem with JavaScript?
body: <p>**i want to put third elememt to second place but i cant **</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>const par = document.getElementsByClassName('menu' ),
        chil = document.getElementsByClassName('menu-item');
          console.log(par, chil);
          par.insertBefore(chil[2] , chil[1])</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code> &lt;nav&gt;
         &lt;ul class="menu"&gt;
           &lt;li class="menu-item"&gt;Первый пункт&lt;/li&gt;
           &lt;li class="menu-item"&gt;Третий пункт&lt;/li&gt;
           &lt;li class="menu-item"&gt;Второй пункт&lt;/li&gt;
           &lt;li class="menu-item"&gt;Четвертый пункт&lt;/li&gt;
         &lt;/ul&gt;
       &lt;/nav&gt;</code></pre>
  </div>
  </div>
  </p>