Created
July 29, 2016 00:26
-
-
Save avand/fa80ff8caf5add682e7b2cdbbb69bfa9 to your computer and use it in GitHub Desktop.
This file contains 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
// Write a value, "avand", to a given key, "username"... | |
localStorage.setItem("username", "avand"); | |
// Read the value of a given key... | |
var username = localStorage.getItem("username"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment