localstorage on click JS

How do I get to show my local storage

function myFunction() {
document.querySelector('.text').innerHTML =  localStorage.getItem(localStorage.key(i)))

var i;
console.log("local storage")
for (i = 0; i < localStorage.length; i++){
localStorage.getItem(localStorage.key(i))}


from Recent Questions - Stack Overflow https://ift.tt/3ouaybj
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

I get wrong characters when retreiving the message body of an email using TIdIMAP4.UIDRetrieveTextPeek2()

How to drop the all the 1's in a correlation matrix

Today Walkin 14th-Sept