Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #18982
| Newsgroups | comp.lang.javascript |
|---|---|
| Subject | Undottability |
| From | "Evertjan." <exxjxw.hannivoort@inter.nl.net> |
| Date | 2013-03-24 11:34 +0100 |
| Message-ID | <XnsA18D75C36B64eejj99@194.109.133.133> (permalink) |
var a = {};
a[''] = 9;
alert(a['']); // 9
[chrome tested]
This object property seems undottable,
as you cannot write it like:
a.b = 1;
alert(a.b); // 1
Strangerder js?
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread
Undottability "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-03-24 11:34 +0100
Re: Undottability Martin Honnen <mahotrash@yahoo.de> - 2013-03-24 12:02 +0100
Re: Undottability "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-03-24 19:50 +0100
Re: Undottability Martin Honnen <mahotrash@yahoo.de> - 2013-03-26 11:59 +0100
csiph-web