Skip to content

Commit 419f3a4

Browse files
authored
Translated solution.md
1 parent d8bc382 commit 419f3a4

File tree

1 file changed

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

1 file changed

+4
-4
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
The answer: `3`.
1+
Atsakymas: `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+
IR `&&` pirmenybė yra aukštesnė už `||`, tad jis įvykdomas pirmiau.
88

9-
The result of `2 && 3 = 3`, so the expression becomes:
9+
Rezultatas yra `2 && 3 = 3`, tad išraiška tampa:
1010

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

15-
Now the result is the first truthy value: `3`.
15+
Dabar rezultatas yra pirmoji truthy vertė: `3`.
1616

0 commit comments

Comments
 (0)