Answers for "how to check if local storage is available"

0

how to check if local storage is available

if (typeof(Storage) !== "undefined") 
{ 
	console.log("localStorage is available."); 
} 
else 
{ 
	console.log("localStorage is not supported by current browser."); 
}
Posted by: Guest on April-23-2021

Code answers related to "how to check if local storage is available"

Browse Popular Code Answers by Language