title: Clicking on button shows the next div
body: <p>I cannot make a function that would let me go to the next div.</p>
  
  <p>I've tried some thing but I just couldn't make it work for some reason</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-html lang-html prettyprint-override"><code>&lt;button type="button" name="button" onclick="arrowLeft()" id="arrowLeft"&gt;Prev&lt;/button&gt;
  &lt;button type="button" name="button" onclick="arrowRight()" id="arrowRight"&gt;Next&lt;/button&gt;
  
  &lt;div class="monsterTabs" id="monsterTabs"&gt;
    &lt;div class="monsterType" id="monsterSlime" style="display:block;"&gt;
      Slime
    &lt;/div&gt;
    &lt;div class="monsterType" id="monsterZombie" style="display:none;"&gt;
      Zombie
    &lt;/div&gt;
    &lt;div class="monsterType" id="monsterSkeleton" style="display:none;"&gt;
      Skeleton
    &lt;/div&gt;
    &lt;div class="monsterType" id="monsterWolf" style="display:none;"&gt;
      Wolf
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://jsfiddle.net/gfx873ve/3" rel="nofollow noreferrer">https://jsfiddle.net/gfx873ve/3</a></p>
  
  <p>I want to know the best way to make it so i can go through the divs without a problem.</p>