Can you please help me add localStorage thing to the code below. I'm not good at creating Javascript code and still learning about it. The code is located below.
I will give you an example:
You want to save in local storage the lastname of a person
you will do something like that:
Save in localstorage
localStorage.setItem("lastname", "Wave");
With the above code, you do something like that lastname = wave
Get the value from localStorage
localStorage.getItem("lastname");
It will return Wave
Please be more specific about the data you want to save in localStorage from your code