<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script>
var sum = 100
console.log(sum>200,sum>=100,sum>10)
// 1.==只比较值,不管类型
var age = "18"
console.log(age == 18)
// 2.===类型和值都比较
console.log(parseInt(age)===18)
console.log(true==1)
console.log(""===0)
console.log(undefined==0)
// 3.!=只比较值,不管类型
console.log(age != 18)
// 4.!==类型和值都比较
console.log(age !== 18)
console.log(parseInt(age) !== 18)
</script>
</head>
<body>
</body>
</html>