How to retrieve all localStorage items without knowing the keys in advance?

I want to show all of the keys and storage written before. My code is below. I created a function (allStorage) but it doesn't work. How can I do this? function storeUserScribble(id) { ...