Using 'undefined' as a key in an object causes the use of <undefined `as a key. What for?
1 answer
This has nothing to do with reserved words. Object keys are displayed in this way, regardless of which line you use for the key. This is just how it is interpreted / presented to you on the console.
var o = {'cheese': 'foo'};
// Object {cheese: "foo"}
o.cheese; // "foo"
o['cheese']; // "foo"
Quotation marks are not needed for access, so they are removed.
+3


