ASAkash Sangleinmap-and-set-in-javascript.hashnode.dev·Apr 21 · 6 min readMap and Set in JavaScriptBefore diving into Map and Set, it's worth understanding why they exist. The Object problem: const obj = {}; obj[42] = "number key"; obj[true] = "boolean key"; console.log(Object.keys(obj)); // ["42"00