//comparison Operators //the "= = =" Variable type and value are equal "= =" an empty string and false have the same meaning varA=false; varB= ""; if(a===b) {Alert ("A equals B");//do not play the windowConsole.log ("a equals B");//No output display } varA=false; varB= ""; if(a==b) { //alert ("a equals B");//a equals BConsole.log ("a equals B");//a equals b } //the operand of the logical operator is a Boolean value. Each logical operand returns a Boolean value of True to live false. //Logic and &&: only if his two operands are true will it be true. varNum=3; if(num>=5&&num<=10) {Console.log ("The number is in the right range");//No output results } //Logical OR | | : If one of his operands is true, the logic or operation will be true, and the logic or operation will be false only if his two operands are false. varNum=3; if(num>=5| | num<=10) {Console.log ("The number is in the right range");//The number is in the right range } </script> JavaScript logical operators