JavaScript Operator: logical OR
[this page | pdf | back links]
In JavaScript,
the || operator is
the logical (i.e. Boolean) OR operator:
|
x
|
y
|
x OR y
|
|
true
|
true
|
true
|
|
true
|
false
|
true
|
|
false
|
true
|
true
|
|
false
|
false
|
false
|
NAVIGATION LINKS
Contents | Prev | Next | JavaScript Operators