Skip to content

Commit

Permalink
Finalize LocalStorage implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
edysegura committed Nov 28, 2020
1 parent eb14d97 commit 4fcc843
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class App {

if (keyInput.value && valueInput.value) {
localStorage.setItem(keyInput.value, valueInput.value);
this.listStorageValues();
}
}

Expand All @@ -30,6 +31,7 @@ class App {
};

const htmlOutput = Object.keys(localStorage)
.sort()
.map(toHtml)
.join("");

Expand Down

0 comments on commit 4fcc843

Please sign in to comment.