Skip to content

Commit 4f355ed

Browse files
authored
ترجمه
1 parent 986ffc8 commit 4f355ed

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

  • 1-js/02-first-steps/12-while-for/1-loop-last-value

1-js/02-first-steps/12-while-for/1-loop-last-value/solution.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The answer: `1`.
1+
پاسخ: `1`.
22

33
```js run
44
let i = 3;
@@ -8,9 +8,9 @@ while (i) {
88
}
99
```
1010

11-
Every loop iteration decreases `i` by `1`. The check `while(i)` stops the loop when `i = 0`.
11+
در هر بار تکرار حلقه متغیر `i` به مقدار `1` عدد کم میشود. عبارت `while(i)` وقتی به `i = 0` برسد متوقف میشود.
1212

13-
Hence, the steps of the loop form the following sequence ("loop unrolled"):
13+
حالا گام های حلقه به این صورت است ("تشریح حلقه"):
1414

1515
```js
1616
let i = 3;
@@ -21,5 +21,5 @@ alert(i--) // shows 2, decreases i to 1
2121

2222
alert(i--) // shows 1, decreases i to 0
2323

24-
// done, while(i) check stops the loop
24+
// تمام. عبارت while(i) حلقه را خاتمه میدهد
2525
```

0 commit comments

Comments
 (0)