Created
February 18, 2020 13:34
-
-
Save rashid327/202a22429886cbccb00ceb1c74c3b1b1 to your computer and use it in GitHub Desktop.
javaScript localStorage
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
// set data on localstorage | |
localStorage.setItem("username", "admin"); | |
// get data from localstorage | |
localStorage.getItem("username"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment