x
 
1
<!DOCTYPE html>
2
<html>
3
<body>
4
5
<h1>JavaScript Comparison == Operator</h1>
6
<script>
7
    let x = 8;
8
    let y = '8';
9
10
    document.write(x == 8);
11
    document.write("<br>")
12
    document.write(y == 8);
13
    document.write("<br>")
14
    document.write(x == x);
15
    document.write("<br>")
16
    document.write(0 == false);
17
    document.write("<br>")
18
    document.write(0 == null);
19
</script>
20
21
</body>
22
</html>