Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to store and get a single variable in local storage js

var userName = "SHAM3R";
//store
localStorage.setItem("storeUserName", userName);
//get
let getUserName = localStorage.getItem("storeUserName");
 
PREVIOUS NEXT
Tagged: #store #single #variable #local #storage #js
ADD COMMENT
Topic
Name
2+9 =