In JavaScript,==and===both represent logic, etc. The difference is that:
*When doing logic and other tasks, perform type conversion first.
*If===, then it won’t.

The following example:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<script language="javascript"> 
var valueA = "1";
var valueB = 1;
if ( valueA == valueB) {
alert("Equal");
}
else {
alert("Not equal")
}
//output: "Equal"
if ( valueA === valueB) {
alert("Equal");
}
else {
alert("Not equal")
}
//output: "Not equal"
</script>