or operator in javascript

JavaScript
//The OR operator in Javascript is 2 verticals lines: ||

var a = true;
var b = false;

if(a || b) {
	//one of them is true, code inside this block will be executed
}//|| is the or operator in JavaScript
if(a == 1 || b != 'value'){
    yourFunction();
}// ===	means equal value and equal type
var x = 5

// true
x === 5

// false
x === "5"/*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.| <= | less than or equal to |	x <= 8 | true |//&& returns true if both values are true
//or returns the second argument if the first is true
var a = true
var b = ""
var c = 1

true && "" //""
"" && 1 //""
false && 5 //false
Source

Also in JavaScript: