1// === means equal value and equal type
2var x = 5
3
4// true
5x === 5
6
7// false
8x === "5"
1//== in Javascript means to check if a value is equal to another value, and it ignores types (quotes and things like that).
2var stage = "begin";
3if (stage == "begin") {
4Bot.send ("Hello User!");
5}
6//Output:
7//Hello User!
1var x = 5;
2
3// === equal value and equal type
4// e.g. 1.
5x === 5 returns true
6
7// e.g. 2.
8x === "5" returns false
9
10// !== not equal value or not equal type
11// e.g. 1.
12x !== 5 returns false
13
14// e.g. 2.
15x !== "5" returns true
16
17// e.g. 3.
18x !== 8 returns true
1The strict inequality operator ( !== ) checks whether its two operands are not equal, returning a Boolean result.
1<!DOCTYPE html>
2<html>
3<body>
4
5<p id="demo"></p>
6
7<script>
8
9 var x = abc;
10 document.getElementById("demo").innerHTML = (x === "ABC");
11
12</script>
13
14</body>
15</html>
16