What is the main advantage of
Map over a plain object when you need to use non-string values as keys?- a
Mapautomatically converts keys to strings, just like objects - b
Mapallows any value (objects, functions, numbers) to be used as a key without coercion✓ - c
Maponly accepts numeric keys, which makes lookups faster - d
Mapkeys are always converted toSymbols internally
Explanation:A plain object coerces every key to a string (or
Symbol), so obj[{}] and obj[1] both end up as string keys. Map keeps keys as-is — an object reference, a number, a boolean, even NaN — with no coercion. Option (a) describes object behavior, not Map's advantage. Option (c) and (d) are simply false.