Saving Data in Local Storage
To store data, use ftd.local_storage.set(key, value). It securely saves data in your browser's Local Storage for later use.
The 'value' can be of any 'fastn' [data type](/built-in-types/), including 'fastn' ['records'](ftd/record/).
Deleting Data from Local Storage
Remove specific data entries using ftd.local_storage.delete(key). This function makes cleaning up data in Local Storage easy.
In the example below, when you click on the 'Get name' button, if the name has not been deleted yet and was previously set using the `ftd.local_storage.set(k, v)` method, it will display that name.
Now, if you click on the 'Delete name' button and then click on the 'Get name' button again, this time it will display 'Empty' because the data was deleted.