javascript precedence problem code example
Example: JavaScript Operator Precedence Values
console.log(3 + 10 * 2); // logs 23
console.log(3 + (10 * 2)); // logs 23 because parentheses here are superfluous
console.log((3 + 10) * 2); // logs 26 because the parentheses change the order