Anonymous
class Store {
public nodeList: Record<string, any> = {};
set(node: string, value: any) {
this.nodeList[node] = value;
}
get(node: string) {
return this.nodeList[node];
}
has(node: string) {
return node in this.nodeList;
}
}
Asana
Apple
Meta
Verizon
GoDaddy
Tech Mahindra
Contribute your knowledge to access all answers
#Give&Take - Share to unlock
Interview question asked to Frontend Engineers interviewing at Epic Games, Funcom, Meta and others: Can you create a store class featuring set(Node, value), get(Node), and has(Node) methods for managing Nodes and their values?.