diff --git a/app.js b/app.js index 19ef5b1..c2833b1 100644 --- a/app.js +++ b/app.js @@ -18,6 +18,7 @@ class App { if (keyInput.value && valueInput.value) { localStorage.setItem(keyInput.value, valueInput.value); + this.listStorageValues(); } } @@ -30,6 +31,7 @@ class App { }; const htmlOutput = Object.keys(localStorage) + .sort() .map(toHtml) .join("");