Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js localstorage boolean

let storeMe = {
  myBool: true
}

localStorage.setItem('test', JSON.stringify(storeMe))
let result = JSON.parse(localStorage.getItem('test'))

Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #localstorage #boolean
ADD COMMENT
Topic
Name
5+2 =