title: My JQuery is not working on Chrome, sometimes works on firefox and then stops
body: <p>when I click on the menu Icon, sometimes it works but after refreshing 3 or 4 times it stops. not working in Chrome at all. am i missing something. Please help.</p>
  
  <pre><code>$(function () {
    const menu = $(".fa-3x");
    const list = $(".show");
    const main = $("#firstpage");
    const last = $("#secondpage");
  
    menu.on("click", _=&gt; {
      $(".show").toggleClass("hide");
    });
  });
  </code></pre>
  
  <p><a href="https://codepen.io/briansaved/pen/YYoOoW" rel="nofollow noreferrer">Mock-up Site here - codepen</a></p>