I was going through Map Documentation on MDN. In Examples, under Using Map Object, Object Literal - {}
is used as key to store value. But, the value in Map can't be retrieved using Object Literal.
I verified this in Browser Console and found that Object Literal is not equal to itself. Also, the Function Expression - function() {}
is not equal to itself.
I couldn't find the reason behind this. If required, I can ask a different question for Function Expression.