I am pretty new to using localStorage, so excuse my ignorance and the potential repetition of this question. I couldn't get any answer yet.
I have a form with a lot of input tags. I am storing their values in a var called data var data = document.querySelectorAll( "input" ).value;
when I do window.localStorage.setItem('data', JSON.stringify(data.value))
it stores data in the storage with a value of undefined.
I get that my var data isn't really catching all the user input values, but I couldn't figure out how to do it.
My intention is to make var data an object that stores other objects that have the values of the input fields. then push this data to the localStorage. WITH PURE JS