function prints(a){ console.log(a) } //比较符 var a = 6 prints(a==5) //等于 prints(a!=5) //不等于 prints(a>7) //大于 prints(a<7) //小于 prints(a>=7) //大于等于 prints(a<=7) //小于等于 prints(a===6) //绝对等于(值和类型一样) prints(a!=="6") //绝对不等于 //逻辑符 var a = 6 var b = 9 prints(a>3 || b>10) //或关系 or prints(a>3 && b>3) //且关系 and prints(!(a>3)) //非关系 not