Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get localStorage

// STRING
// localStorage --> key : 'A'
let a = localStorage.getItem('KEY'); // a = 'A'

// ARRAYS
let arr
function getLocalStorage(){
const get = localStorage.getItem("KEY")
if (get){
	arr = JSON.parse(getLocalStorage) 
}
 
PREVIOUS NEXT
Tagged: #localStorage
ADD COMMENT
Topic
Name
8+9 =