OR Logical Operator
The || (OR) operator is used for defining the "or" relation between two or more expressions.
It returns true if any of the expressions evaluate to true.
Example:
12345let a = 9; if(a < 10 || a > 30) { console.log("Condition Matched"); }
The above code output "Condition Matched" when a is less than 10 OR a is greater than 30.
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 43
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Großartig!
Completion Rate verbessert auf 1.33
OR Logical Operator
Swipe um das Menü anzuzeigen
The || (OR) operator is used for defining the "or" relation between two or more expressions.
It returns true if any of the expressions evaluate to true.
Example:
12345let a = 9; if(a < 10 || a > 30) { console.log("Condition Matched"); }
The above code output "Condition Matched" when a is less than 10 OR a is greater than 30.
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 43