local storage javascript object
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:
- angular ng serve with custom port
- javascript increment alphabet
- node js read files recursively
- js remove spaces
- how to check if the first letter of a string is capitalized or uppercase in js
- nodemon node
- javascript remove duplicate strings from array
- hmac_sha256 node
- validador de cep javascript
- javascript turn string into array
- Javascript check if undefined
- javascript date calculations ignore weekends
- fizzbuzz javascript
- jquery get dropdown list selected value
- Lazy Loading Routes vue
- import { PartialType } from '@nestjs/mapped-types'
- Angular comment
- react router 404 redirect
- namesandroles javascript
- js select option value when selected
- how to lock device orientation using css and javascript
- change text shadow javascript
- nodejs function example
- twig for