We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8bc382 commit 419f3a4Copy full SHA for 419f3a4
1-js/02-first-steps/11-logical-operators/5-alert-and-or/solution.md
@@ -1,16 +1,16 @@
1
-The answer: `3`.
+Atsakymas: `3`.
2
3
```js run
4
alert( null || 2 && 3 || 4 );
5
```
6
7
-The precedence of AND `&&` is higher than `||`, so it executes first.
+IR `&&` pirmenybė yra aukštesnė už `||`, tad jis įvykdomas pirmiau.
8
9
-The result of `2 && 3 = 3`, so the expression becomes:
+Rezultatas yra `2 && 3 = 3`, tad išraiška tampa:
10
11
12
null || 3 || 4
13
14
15
-Now the result is the first truthy value: `3`.
+Dabar rezultatas yra pirmoji truthy vertė: `3`.
16
0 commit comments