📜  js 运算符优先级或 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:34.200000             🧑  作者: Mango

代码示例3
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