title: How to Edit and Remove item from sessionStorage
body: <p>This code to store items in sessionStorage so i want to add, edit ,
  remove item and remove all my code worked well except remove item i
  don't know the reason</p>
  
  <pre><code>function clearItem () {
              for (var i = 0; i &lt; sessionStorage.length; i++) {
                  var a = sessionStorage.key(i);
                  var b = sessionStorage.removeItem(a);
              }
          }
  </code></pre>
  
  <p><a href="https://jsfiddle.net/mferry/4uqkp7hu/" rel="nofollow noreferrer">here's my code in jsfiddle</a></p>