Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Javascript
how to check is the key of a localstorage is emopty
user94698
Programming language:
Javascript
2021-06-22 00:01:08
0
Q:
how to check is the key of a localstorage is emopty
Sinusx
Code:
Javascript
2021-01-22 11:46:53
if (localStorage.getItem("username") === null) { //... }
2
NinWyu
Code:
Javascript
2021-01-24 08:33:16
if (localStorage.getItem("username") === null) { //... }
0
Tags
key
check
how
age
Related
how to check if local storage variable exists in javascript
get localstorage
javascript store object in localstorage
Storing Objects in HTML5 localStorage
check if localstorage key exists js
New to Communities?
Join the community