Can you create a store class featuring set(Node, value), get(Node), and has(Node) methods for managing Nodes and their values?

Interview question asked to Frontend Engineers interviewing at Mitsubishi Electric, Trello, GREE and others: Can you create a store class featuring set(Node, value), get(Node), and has(Node) methods for managing Nodes and their values?.