var string1 = "Hello World";
var string2 = "Hello world.";
if (string1 === string2) {
console.log("Matching strings!");
}
else {
console.log("Strings do not match");
}
// Operator / Description
== // equal to
=== // equal value and equal type
!= // not equal
!== // not equal value or not equal type
> // greater than
< // less than
>= // greater than or equal to
<= // less than or equal to