Operators explaination error corrected
This commit is contained in:
parent
c693192018
commit
ef2ab17886
1 changed files with 1 additions and 1 deletions
|
@ -148,7 +148,7 @@ Bitwise
|
||||||
: Bitwise operators work with integers on bit-level: see the [docs](mdn:/JavaScript/Reference/Operators/Bitwise_Operators) when they are needed.
|
: Bitwise operators work with integers on bit-level: see the [docs](mdn:/JavaScript/Reference/Operators/Bitwise_Operators) when they are needed.
|
||||||
|
|
||||||
Ternary
|
Ternary
|
||||||
: The only operator with three parameters: `cond ? resultA : result B`. If `cond` is truthy, returns `resultA`, otherwise `resultB`.
|
: The only operator with three parameters: `cond ? resultA : resultB`. If `cond` is truthy, returns `resultA`, otherwise `resultB`.
|
||||||
|
|
||||||
Logical operators
|
Logical operators
|
||||||
: Logical AND `&&` and OR `||` perform short-circuit evaluation and then return the value where it stopped.
|
: Logical AND `&&` and OR `||` perform short-circuit evaluation and then return the value where it stopped.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue