Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

localStorage

#you must first stringify it with the JSON.stringify() function

localStorage.setItem('items', JSON.stringify(items));
const x = JSON.parse(localStorage.getItem('items'))
Source by blog.logrocket.com #
 
PREVIOUS NEXT
Tagged: #localStorage
ADD COMMENT
Topic
Name
1+9 =