## MemoryStorage.getItem() method

Returns the current value associated with the given key, or null if the given key does not exist.

**Signature:**

```typescript
getItem(key: string): string | null;
```

## Parameters

| Parameter | Type   | Description                 |
|-----------|--------|-----------------------------|
| key       | string | The specified storage key.   |

**Returns:**

string | null

The current value associated with the given key, or null if the given key does not exist.

- [MemoryStorage.getItem() method](/content/docs/sdk/core.memorystorage.getitem#memorystoragegetitem-method/index.html)
- [Parameters](/content/docs/sdk/core.memorystorage.getitem#parameters/index.html)
