Haem
0
Q:

ternary operator w3schools

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

//Example
var booleanOne = true;
var booleanTwo = false;

if(booleanOne || booleanTwo) {
	//At least one boolean is true -> code excuted
}
11
if(a <= 5){
   yourFunction();
}
2
// ===	means equal value and equal type
var x = 5

// true
x === 5

// false
x === "5"
7
| <= | less than or equal to |	x <= 8 | true |
2

 variablename = (condition) ? value1:value2 
0

New to Communities?

Join the community