> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: getItem(key: string) # Method package: wixStorageMobile # Method menu location: wixStorageMobile --> StorageMobile --> getItem # Method Link: https://dev.wix.com/docs/velo/apis/wix-storage-mobile/storage-mobile/get-item.md # Method Description: Gets an item from local or memory storage. If an item does not exist, `getItem()` resolves to null. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Retrieve an item from local storage ```javascript import {local} from 'wix-storage-frontend'; // ... let value = local.getItem("key"); // "value" ``` ## Retrieve an item from memory storage ```javascript import {memory} from 'wix-storage-frontend'; // ... let value = memory.getItem("key"); // "value" ``` ## Manage data stored in the browser ```javascript import {local as storage} from 'wix-storage-frontend'; // Alternatively use: // import {session as storage} from 'wix-storage-frontend'; // import {memory as storage} from 'wix-storage-frontend'; $w.onReady(async function () { $w('#setItemButton').onClick( () => { storage.setItem($w('#setKey').value, $w('#setValue').value); $w('#setKey').value = undefined; $w('#setValue').value = undefined; }); $w('#getItemButton').onClick( () => { $w('#getValue').value = storage.getItem($w('#getKey').value); $w('#getKey').value = undefined; }); $w('#removeItemButton').onClick( () => { storage.removeItem($w('#removeKey').value); $w('#removeKey').value = undefined; }); $w('#clearButton').onClick( () => { storage.clear(); }); }); ``` ---