The spec has no precedence table. Precedence falls out of the expression grammar: each level is a nonterminal built from the next tighter one, from AssignmentExpression down through ConditionalExpression, ShortCircuitExpression, the logical, bitwise, equality, relational, shift, additive, multiplicative and exponentiation levels, to unary, update and member/call expressions. MDN's table summarises that grammar.
Associativity settles chains of one level. Most binary operators are left-associative: 1 + 2 + '3' is (1 + 2) + '3', '33'. Three groups are right-associative: ** (2 ** 3 ** 2 is 2 ** 9), the conditional operator (so a ? b : c ? d : e chains like else if), and assignment (a = b = 5).
Grouping is not evaluation order. f() + g() * h() multiplies first, but binary operators evaluate their left operand before their right (for arithmetic, that's step 1 of EvaluateStringOrNumericBinaryExpression), so the calls still run f, g, h.
The rules people actually get wrong:
'Role: ' + isAdmin ? 'admin' : 'user'—+binds tighter than?:, so the condition is the non-empty string and the result is always'admin'.!key in objand!x instanceof C— unary!binds tighter, so you testfalse in objorfalse instanceof C.x & 1 === 0— equality binds tighter than bitwise AND, givingx & false.typeof x === 'string'works becausetypeofis unary and binds tighter than===.
Two mixes are rejected outright. -2 ** 2 is a SyntaxError: **'s left operand must be an update expression, not a unary one, so you must write (-2) ** 2 or -(2 ** 2). And ?? can't share a chain with || or && without parentheses: the grammar puts CoalesceExpression and LogicalORExpression side by side, so neither contains the other.