Last active
September 24, 2019 07:25
-
-
Save Shakil-Shahadat/36f1cd6f8600c59e3f7132151b3bc329 to your computer and use it in GitHub Desktop.
Check for localStorage/sessionStorage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( typeof( Storage ) !== 'undefined' ) | |
{ | |
console.log( 'Storage Exists!' ); | |
} | |
else | |
{ | |
console.log( 'Storage doesn\'t Exists!' ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment