Answers for "set a boolean value in localstorage javascript and then use it to change"

1

js localstorage boolean

let storeMe = {
  myBool: true
}

localStorage.setItem('test', JSON.stringify(storeMe))
let result = JSON.parse(localStorage.getItem('test'))
Posted by: Guest on February-22-2021

Code answers related to "set a boolean value in localstorage javascript and then use it to change"

Code answers related to "Javascript"

Browse Popular Code Answers by Language