Key and value arrays of a storage in JavaScript

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

javascriptlet keys = Object.keys(localStorage);

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

javascriptlet values = Object.values(localStorage);
Задание 1

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

Задание 2

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