Skip to content

Commit 9cd16a4

Browse files
committed
8-if-question finish translation
1 parent 35dda72 commit 9cd16a4

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
The answer: the first and the third will execute.
1+
Răspuns: primul și al treilea vor fi afișate.
22

3-
Details:
3+
Detalii:
44

55
```js run
6-
// Runs.
7-
// The result of -1 || 0 = -1, truthy
8-
if (-1 || 0) alert( 'first' );
6+
// Este executat.
7+
// Rezultatul dintre -1 || 0 = -1, truthy
8+
if (-1 || 0) alert( 'primul' );
99

10-
// Doesn't run
10+
// Nu este executat
1111
// -1 && 0 = 0, falsy
12-
if (-1 && 0) alert( 'second' );
12+
if (-1 && 0) alert( 'al doilea' );
1313

14-
// Executes
15-
// Operator && has a higher precedence than ||
16-
// so -1 && 1 executes first, giving us the chain:
14+
// Este executat
15+
// Oparatorul && are o primoritate mai mare decât ||
16+
// așadar -1 && 1 este exuctat mai întâi, dând lanțul următor:
1717
// null || -1 && 1 -> null || 1 -> 1
18-
if (null || -1 && 1) alert( 'third' );
18+
if (null || -1 && 1) alert( 'al treilea' );
1919
```
2020

1-js/02-first-steps/11-logical-operators/8-if-question/task.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ importance: 5
22

33
---
44

5-
# A question about "if"
5+
# O întrebare despre "if"
66

7-
Which of these `alert`s are going to execute?
7+
Care dintre următoarele `alert`-uri va fi executată.
88

9-
What will the results of the expressions be inside `if(...)`?
9+
Care va fi rezultatul expresiei din interiorul lui `if(...)`?
1010

1111
```js
12-
if (-1 || 0) alert( 'first' );
13-
if (-1 && 0) alert( 'second' );
14-
if (null || -1 && 1) alert( 'third' );
12+
if (-1 || 0) alert( 'primul' );
13+
if (-1 && 0) alert( 'al doilea' );
14+
if (null || -1 && 1) alert( 'al treilea' );
1515
```
1616

0 commit comments

Comments
 (0)