I wonder why it's valid to use positive numbers numerically as object literal keys, but not negative numbers... it can't be ambiguous.
@rwaldron @kuvos Real answer: e.g. `-123` is not a decimal literal or a hex integer literal (or an octal literal). http://mathiasbynens.be/notes/javascript-properties …
-
-
@mathias how is that more real then my first answer, which is exactly the same? -
@rwaldron Because e.g. `var obj = { .12: 3 };` works too. Your answer didn’t mention `.` AFAICT - 1 more reply
New conversation -
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.