Clearing a local storage in JavaScript

Using the clear method, you can clear the entire storage. See an example:

javascriptlocalStorage.clear();
Задание 1

Clear a storage. Check that all the keys you previously set are gone.