标签:图片 ++ var pre ima inf string code 运算符优先级
// ++num !num 2 + 3
console.log(4 >= 6 || '人' != '阿凡达' && !(12 * 2 == 144) && true) // true
var num = 10;
console.log(5 == num / 2 && (2 + 2 * num).toString() === '22'); // true
console.log('-------------------');
var a = 3 > 5 && 2 < 7 && 3 == 4;
console.log(a); // false
var b = 3 <= 4 || 3 > 1 || 3 != 2;
console.log(b); // true
var c = 2 === "2";
console.log(c); // false
var d = !c || b && a;
console.log(d); // true
标签:图片 ++ var pre ima inf string code 运算符优先级
原文地址:https://www.cnblogs.com/jianjie/p/12130288.html