The removeItem() function is used to remove the item that has been stored using the storeItem() function. It removes the value under the given key name from the local storage of the browser.
Parameters: This function accept a single parameter as mentioned above and described below.
- key: This is a string which denotes the key for which the value has to be removed.
Below example illustrates the removeItem() function in p5.js:
Online editor: https://editor.p5js.org/
Environment Setup: https://www.geeksforgeeks.org/p5-js-soundfile-object-installation-and-methods/