I don't seem to be able to define something like:
var a = {-1: 'Apple', -2: 'Orange'}
my Safari complains about a syntax error near '-'
. Parens don't help either, i.e. {(-1): ...
- in that case Safari doesn't like the opening paren.
If I want the keys to be just ints, not strings, what is the proper way of constructing an assoc array, if any?