The operator priority table I can find is:
https://developer.mozilla.org/en/JavaScript/Reference/Operators/Operator_Precedence
according to the table, both “→” and “*” are associated from left to right, and “→” have a higher priority, so I think a → b * c should be explained as (a → b) * c however, my test in Firefox (using Firebug), tell me:
0x11 >> 1 .... 8 0x11 >> 1 * 2 .... 4
What bothers me should it be 16?
Well, I understand that we should always use parentheses if the priority is not clear, but should there be a rule or an explanation of what happens?
source share