In HTML 5 the web application can store the data locally within the browser which can’t be transferred to the server. Before HTML 5, the local data in client side was stored in the cookies. There are two types of web storage. Local Storage Session Storage Local Storage : When we store data in Local storage, It can not be cleared until user manually clears the browser cache or pro-grammatically clears the storage. Add Data: Syntax : localStorage.setItem('key','value') Example : localStorage.setItem('name','Nikhil') Read Data: Syntax : localStorage.getItem('key') Example : localStorage.getItem('name') Update Data: Syntax : localStorage.setItem('key','value') Example : localStorage.setItem('name','Niks') Delete Data: Syntax : localStorage. removeItem ('key') Example : localStorage. removeItem ('name') Delete All Data From Local Stora...
Here you can find solution of your code problem & errors.