ASAkash Sangleinmap-and-set-in-javascript.hashnode.dev00Map and Set in JavaScript3d ago · 6 min read · Before 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"Join discussion