HomeAbout

What is localStorage

localStorage is attached on the global window.

You can view the local storage under Application tab in the developer tools or just typing localStorage in the browser console.

Clearing

// remove a specific localStorage object localStorage.removeItem("variable_name"); // clear all localStorage object window.localStorage.clear();
AboutContact