22.
What will be the value of x after the following assignment expression is evaluated: x = 5 + 3 * 2;?
16
13
11
20
Correct: C
In JavaScript, the operator precedence rules are followed when evaluating an assignment expression. In this case, the multiplication operator (*) has a higher precedence than the addition operator (+), so 3 * 2 will be evaluated first, resulting in 6. Then, the addition of 5 and 6 will be evaluated, resulting in 11. Therefore, the value of x will be 11.