2023-07-29T13:31:44.png

var num1 = 10;
var num2 = 20;
var num3 = "10";

// num1是否大于num2
console.log(num1 > num2);//false

//比较是否相等
console.log(num1 == num2);//false

//比较数值是否相等并且数据类型一样
console.log(num1 === num3);//false

//数值是否不相等
console.log(num1 != num2);//true

//数值和数据类型是否不相等
console.log(num1 !== num3);//true