First Question
Then provide sample code
Analyze complexity, improve, analyze complexity
Second Question
Write a DOMStore:
const node = document.getElementById('my-element')
DOMStore.set(node, 'value')
DOMStore.get(node)
DOMStore.has(node)
Cannot use Map
Analyze complexity