local storage in vanila javascript

Solutions on MaxInterview for local storage in vanila javascript by the best coders in the world

showing results for - "local storage in vanila javascript"
Tom
20 Aug 2016
1// Store data
2var someData = 'The data that I want to store for later.';
3localStorage.setItem('myDataKey', someData);
4
5// Get data
6var data = localStorage.getItem('myDataKey');
7
8// Remove data
9localStorage.removeItem('myDatakey');
10