Looping Melalui JavaScript Penyimpanan Lokal

for (const [key, value] of Object.entries(localStorage)) {
	console.log(`${key}: ${value}`);
}
Undefined