or
Last updated
'or' operator is a boolean operator that returns true if either operand is true and returns false otherwise.
value1
The first boolean value to check.
Boolean
-
-
Yes
value2
The second boolean value to check.
Boolean
-
-
Yes
Returns true if either operator is true, returns false otherwise.
Boolean
N/A
Coming Soon.
The user wants to check if either of the values is true and print the result in the console.
Call the console function. Call the or function inside the value parameter of the console function.
value1 : false
value2 : false


The console will print false since neither value of the or function is true.
Last updated