This example demonstrates how to use the setItem() method to set the value of a specified local storage item.
Click the button to get the item value: