With operator precedence we describe the order in which operations are executed when expressions are evaluated. The operations with a higher precedence will run before the operations with a lower precedence. For example, multiplication is performed before addition.
To alter the order of the evalutation we use parentheses determined by operator precedence. So an expression within parentheses is always evaluated fully before we use its value in the reminder of the expression.
var x= 5 * 6 + 46;
document.write( "<br/>" );
x= 5 * (6 + 3);
var x = 10;
if (5 == x / 2 && (2 + 2 * x).toString() === "22" )
// Result: true