Skip to content

Instantly share code, notes, and snippets.

@AliN11
Last active August 2, 2019 17:34
Show Gist options
  • Save AliN11/0865ae8f7546ad463a7c2329b4cda308 to your computer and use it in GitHub Desktop.
Save AliN11/0865ae8f7546ad463a7c2329b4cda308 to your computer and use it in GitHub Desktop.
let person = {
name: 'Bastian',
lastname: 'Schweinsteiger'
};
person = JSON.stringify(person);
localStorage.setItem('user', person);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment