WeakMap

Creating a WeakMap object

Getting a value associated to the key

Assigning a value to the key

Checking if an element with the key exists

Removing an element with the key

Weak reference demo