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) 
}
Source by www.ingroy.com #
 
PREVIOUS NEXT
Tagged: #localStorage
ADD COMMENT
Topic
Name
2+9 =