its secure and more data can store
Local storage data storing in two object
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
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.