Javascript store in localStorage
var person = { "name": "billy", "age": 23};
localStorage.setItem('person', JSON.stringify(person)); //stringify object and store
var retrievedPerson = JSON.parse(localStorage.getItem('person')); //retrieve the object
Also in JavaScript:
- print all the nested json key value pair c#
- add new element to existing json object
- const{}=
- js create tag
- how to ask input in javascript
- rounding off in javascript
- js array contains
- on hover display block jquery
- godot get scene root
- mongoose find multiple conditions
- jquery script tag source google
- target data option select vue js
- react routing and force https
- navigation.openDrawer is not a function react native
- javascript break foreach
- how to display current date and time in angular
- change inptu val
- js ready
- ternary
- socket io broadcast to room
- prevent double tap in react native
- save a dict to json python
- Image react native
- update object in react hooks