title: sessionStorage.get() - get current key value
body: <p>I have a current sessionStorage in place. 
  The .set method is working correctly. </p>
  
  <p>The problem is the key it's not fixed. it's being created with the array of the first product I click. </p>
  
  <p>like this: 
  <a href="https://i.stack.imgur.com/vnYs5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vnYs5.png" alt="enter image description here"></a></p>
  
  <p>Like this, I can't have a key value to use the .get method in another page. </p>
  
  <p>This is my JS. </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>$('.go-to-bag').click(function() {
    var productId = $(this).parent().attr('id');
    var productName = $(this).parent().attr('product-name');
    var productQty = $(this).prev().val();
    var productLWeight = $(this).parent().attr('product-weight');
    var productPesoBruto = $(this).parent().attr('product-pesobruto');
    var productPrice = $(this).parent().attr('product-price');
    var productPricesemiva = $(this).parent().attr('product-pricesemiva');
  
    var newList = new Object();
  
    if (sessionStorage.newShoppingList) {
      newShoppingList = JSON.parse(sessionStorage.getItem('newShoppingList'));
    } else {
      newShoppingList = []
    }
  
    newShoppingList.push({
      productId,
      productName,
      productQty,
      productPrice,
      productPricesemiva,
      productLWeight,
      productPesoBruto
    });
  
    sessionStorage.setItem('newShoppingList', JSON.stringify(newShoppingList));
  
    var retrievedObject = sessionStorage.getItem('newShoppingList');
    console.log('retrievedObject: ', JSON.parse(retrievedObject));
  
  });</code></pre>
  </div>
  </div>
  </p>
  
  <p>So, I can I get the key so i can use .get method and retrive the value inserted in another page?</p>