⊗jsSpSgKVA 92 of 294 menu

Key and value arrays of a storage in JavaScript

You can get an array of keys of all entries from local storage:

let keys = Object.keys(localStorage);

You can also get an array of values of all entries from local storage:

let values = Object.values(localStorage);

On button click, output with loop the keys of all entries from the local storage.

On button click, output with loop the values of all entries from the local storage.

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline