Covering local storage is important because it is our first experience with creating a web application/site that does not refresh the browser state on refresh.
A developer would use lcoal storage when they want to store somehting but not necessarily on a server-side. Local storage allows for web application to close and reopen without restarting all over again.
Any sensitive information
local storage can only store strings in the different keys. If we want objects to work, we would have to use
JSON.stringify()
andJSON.parse
as a workaround.