how to add variable to local storage in javascript
snippet in javascript

how to add variable to local storage in javascript

user704

localStorage.setItem('key', 'value')