Bucle a través de JavaScript de almacenamiento local
for (const [key, value] of Object.entries(localStorage)) {
console.log(`${key}: ${value}`);
}
Undefined
for (const [key, value] of Object.entries(localStorage)) {
console.log(`${key}: ${value}`);
}