fixes
This commit is contained in:
parent
c9401b3104
commit
0fcf9f84fa
58 changed files with 673 additions and 643 deletions
|
@ -10,7 +10,7 @@ while (i) {
|
|||
|
||||
Every loop iteration decreases `i` by `1`. The check `while(i)` stops the loop when `i = 0`.
|
||||
|
||||
Hence, the steps of the loop make the following sequence ("loop unrolled"):
|
||||
Hence, the steps of the loop form the following sequence ("loop unrolled"):
|
||||
|
||||
```js
|
||||
let i = 3;
|
||||
|
@ -23,4 +23,3 @@ alert(i--) // shows 1, decreases i to 0
|
|||
|
||||
// done, while(i) check stops the loop
|
||||
```
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ importance: 3
|
|||
|
||||
# Last loop value
|
||||
|
||||
What is be the last value alerted by this code? Why?
|
||||
What is the last value alerted by this code? Why?
|
||||
|
||||
```js
|
||||
let i = 3;
|
||||
|
@ -13,4 +13,3 @@ while (i) {
|
|||
alert( i-- );
|
||||
}
|
||||
```
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue