jaymascarenas
2/11/2016 - 6:10 PM

Local Storage Console Logs for Quantity and Key/Values

Local Storage Console Logs for Quantity and Key/Values

      var length = localStorage.length;
      console.log(length);

      for (var i = 0; i < localStorage.length; i++) {

        var propertyName = localStorage.key(i);

        console.log(i + " : " + propertyName + " = " +
          localStorage.getItem(propertyName));
      }