# 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.

← →
↑
en ru