This example demonstrates how to use the length property to get the number of items stored in the session storage object.
Since you might not have any items stored in your session storage, we have added a script that creates some for you.
Click the button to get the number of session storage items: