Created
January 19, 2021 13:47
-
-
Save JimmyLv/f95d157da82164c8a3085bd18cde068d to your computer and use it in GitHub Desktop.
Created with Copy to Gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var names = []; | |
| names[0] = prompt("New member name?"); | |
| localStorage.setItem("names", JSON.stringify(names)); | |
| //... | |
| var storedNames = JSON.parse(localStorage.getItem("names")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment