Local Storage:
its secure and more data can store
Local storage data storing in two object
1.window.localStorage
2.window.sessionStorage
Local storage data will not be deleted after closing the browser. it will be avaialble in the user
browser for ever.
Example for Storing local storage.
localStorage.myval=’vasanthan’ ;– this is for adding value
localStorage.removeItem(“myval”);–remove the value
Session Storage
This is also equal to localstorage.but it stores the data for session basis,if we close the browser or
browser tab it will delete storage value.