Answers for "how to use locakl storage js"

42

localstorage javascript

localStorage.setItem('user_name', 'Rohit'); //store a key/value
var retrievedUsername = localStorage.getItem('user_name'); //retrieve the key
Posted by: Guest on October-23-2019
0

how to get variable in local storage in javascript

localStorage.getItem('id');
Posted by: Guest on February-28-2020

Code answers related to "how to use locakl storage js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language