Storage: setItem() method - Web APIs | MDN - MDN …
https://developer.mozilla.org/en-US/docs/Web/API/Storage/setItem
The following function creates three data items inside local storage.Storage only supports storing and retrieving strings. If you want to save other data types, you have to convert them to strings. For plain objects and arrays, you can use JSON.stringify().
The following function creates three data items inside local storage.Storage only supports storing and retrieving strings. If you want to save other data types, you have to convert them to strings. For plain objects and arrays, you can use JSON.stringify().
DA: 85 PA: 10 MOZ Rank: 89