Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to save and use item from local storage javascript

const person = {
    name: "Obaseki Nosa",
    location: "Lagos",
}

window.localStorage.setItem('user', JSON.stringify(person));
Source by blog.logrocket.com #
 
PREVIOUS NEXT
Tagged: #save #item #local #storage #javascript
ADD COMMENT
Topic
Name
4+2 =