Skip to content

Commit 0a8b8b5

Browse files
committed
fix according to suggestion.
1 parent 2028da3 commit 0a8b8b5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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
@@ -15,11 +15,11 @@ while (i) {
1515
```js
1616
let i = 3;
1717

18-
alert(i--); // 显示 3, i 减至 2
18+
alert(i--); // 显示 3i 减至 2
1919

20-
alert(i--) // 显示 2, i 减至 1
20+
alert(i--) // 显示 2i 减至 1
2121

22-
alert(i--) // 显示 1, i 减至 0
22+
alert(i--) // 显示 1i 减至 0
2323

24-
// 完成, while(i) 检查并停止循环
24+
// 完成while(i) 检查并停止循环
2525
```

1-js/02-first-steps/12-while-for/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ for (let i = 0; i < 10; i++) {
247247
 //如果为真,跳过循环体的剩余部分。
248248
*!*if (i % 2 == 0) continue;*/!*
249249

250-
alert(i); // 1, 然后 3, 5, 7, 9
250+
alert(i); // 1然后 3,5,7,9
251251
}
252252
```
253253

0 commit comments

Comments
 (0)