📜  或运算符 javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:28.830000             🧑  作者: Mango

代码示例4
/*OR operator:*/
||

// example:
var a = 10;
var b = 5;

if(a > 7 or b > 7){ 
  print("This will print!")
}
// Even though a is not less than 7, b is, so the program will print
// the statement.