A Associative array indexing (Advice) See also: (Submit web site)
A Associative array indexing (Advice) See also: = (Assign), Add then assign (+=), Assignment expression, Bitwise AND then assign (&=), Bitwise OR then assign (|=), Bitwise shift left then assign (<<=), Bitwise shift right and assign (>>=), Bitwise unsigned shift right and assign (>>>=), Bitwise XOR and assign (^=), Concatenate then assign (+=), Divide then assign (/=), Multiply then assign (*=), Operator, Postfix expression, Prefix expression, Remainder then assign (%=), Subtract then assign (-=), var Cross-references: ECMA 262 edition 2 section 11.13 ECMA 262 edition 2 section 12.2 ECMA 262 edition 3 section 11.13 ECMA 262 edition 3 section 12.2 Wrox Instant JavaScript ISBN 1861001-27-4 page 20 Associative array indexing (Advice) Accessing array elements with strings as symbolic names. Arrays and collections can be accessed using numeric indexing where each pocket is referred to by a number. The array may be sparse and not all entries need to be assigned, but the length value will be set to one greater than the highest numbered entry. The first numbered entry is item 0. You can also use strings instead of numbers. These string values can be specified literally or be passed with a variable. These are all valid array element references: myIndex = “three”; myArray[0] = “A”; myArray[100] = “B”; myArray[”one”] = “C”; myArray[’two’] = “D”; myArray[three] = “E”; See also: Array index delimiter ([ ]) Associativity (Definition) A direction of evaluation of an operator-driven expression. The associativity of an operator indicates the order of evaluation of its operands. An operator with an associativity of left to right evaluates the expression in the operand to its left and then the one to the right. The alternative is right to left associativity.