What is the difference between JS Map and JS Object?
I know that MapMap is hash table implementation for JS, but how does it differ from an object? With regards to how Python dictionaries work, there seems to be no difference.
const x = new Map();x.set("foo", "bar");
const x = new Map();x.set("foo", "bar");
vs
const x = { foo: "bar" };
const x = { foo: "bar" };
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
D
Deno
Chat about Deno, a modern runtime for JavaScript and TypeScript.