From 4fcc843aef3599bfacdcfb2a4b2e930b8dce2313 Mon Sep 17 00:00:00 2001 From: Edy Segura Date: Sat, 28 Nov 2020 11:23:45 -0300 Subject: [PATCH] Finalize LocalStorage implementation --- app.js | 2 ++ 1 file changed, 2 insertions(+) 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("");