Skip to content

Commit ddffb12

Browse files
committed
saving progress
1 parent 758563a commit ddffb12

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

  • 1-js/02-first-steps/11-logical-operators

1-js/02-first-steps/11-logical-operators/article.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
# Logical operators
1+
# Логічні оператори
22

3-
There are three logical operators in JavaScript: `||` (OR), `&&` (AND), `!` (NOT).
3+
У JavaScript існує три логічних опратори: `||` (OR), `&&` (AND), `!` (NOT).
44

5-
Although they are called "logical", they can be applied to values of any type, not only boolean. Their result can also be of any type.
5+
Хоча вони називаються "логічними", вони можуть бути застосовані до значень будь-якого типу, те тільки булевих. Їх результати також може бути будь-якого типу.
66

7-
Let's see the details.
7+
Подивимось більш детально.
88

99
## || (OR)
1010

11-
The "OR" operator is represented with two vertical line symbols:
11+
Оператор "OR" представлений двома символами вертикальної лінії:
1212

1313
```js
1414
result = a || b;
1515
```
1616

17-
In classical programming, the logical OR is meant to manipulate boolean values only. If any of its arguments are `true`, it returns `true`, otherwise it returns `false`.
17+
У класичному програмуванні логічний OR призначений для маніпулювання лише булевими значеннями. Якщо будь-який з його аргументів `true`, він повертає `true`, інакше повертає `false`.
1818

1919
In JavaScript, the operator is a little bit trickier and more powerful. But first, let's see what happens with boolean values.
2020

0 commit comments

Comments
 (0)