Skip to content

Commit e2b991b

Browse files
authored
Update solution.md
1 parent 9174447 commit e2b991b

File tree

1 file changed

+4
-5
lines changed
  • 1-js/02-first-steps/11-logical-operators/5-alert-and-or

1 file changed

+4
-5
lines changed
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
The answer: `3`.
1+
Жообу: `3`.
22

33
```js run
44
alert( null || 2 && 3 || 4 );
55
```
66

7-
The precedence of AND `&&` is higher than `||`, so it executes first.
7+
ЖАНА'нын `&&` алгачкылыгы `||` операторунан жогору, андыктан ал биринчи аткарылат.
88

9-
The result of `2 && 3 = 3`, so the expression becomes:
9+
Натыйжасы `2 && 3 = 3`, андыктан туюнтма мындай болуп калат:
1010

1111
```
1212
null || 3 || 4
1313
```
1414

15-
Now the result is the first truthy value: `3`.
16-
15+
Эми натыйжасы - бул биринчи чындык мааниси: `3`.

0 commit comments

Comments
 (0)