<! DOCTYPE html>//logical Interrupt (short-circuit operation) //Logical OR: | | //logic and: && //Logical OR: //syntax: expression 1 | | expression 2 //if the value of the first expression is true: Returns the expression 1 //if the value of the first expression is false: Returns the expression 2 //Logic with: //syntax: expression 1 && expression 2 //if the value of the first expression is true: Returns the expression 2 //if the value of the first expression is false: Returns the expression 1 //var b = 123 | | 456; varb = 0 | | 55W; Console.log (b); //Scenario: Parameter default values for a function functionfn (NUM1) {//Console.log (NUM1);NUM1 = NUM1 | | 1; //if (num1!== 0) { //num1 = 1; // }Console.log (NUM1); } //If the parameter is not worn, the value of num1: undefinedFN ();//0FN (123);//123 //Logic and //var b = 123 && 456; //var b = 0 && 456; //Console.log (b); //when you make a judgment, //if (condition 1 && Condition 2 && condition 3) //if (condition 1 | | Condition 2 | | Condition 3) //</script></body>Logical interrupt for JavaScript (short-circuit operation)