Answers for "if localstorage key exists create new key in jquery"

0

check if localstorage key exists js

if("user" in localStorage){
   alert('yes');
} else {
   alert('no');
}
Posted by: Guest on July-04-2020

Code answers related to "if localstorage key exists create new key in jquery"

Code answers related to "Javascript"

Browse Popular Code Answers by Language