Skip to content

Commit 9648103

Browse files
authored
Merge pull request #320 from ut-code/fix-increment-operator
Fix increment operator
2 parents f15bfab + efb5c37 commit 9648103

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/2-browser-apps/05-array/_samples/Array-class/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//Array#push メソッドを用いて、フィボナッチ数列の配列を作成
22
const f = [1, 1];
3-
for (let i = 0; i < 100; i++) {
3+
for (let i = 0; i < 100; i += 1) {
44
f.push(f[f.length - 1] + f[f.length - 2]);
55
}
66

docs/2-browser-apps/05-array/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ document.write(studentNames.length); // 4
121121
```javascript
122122
//Array#push メソッドを用いて、フィボナッチ数列の配列を作成
123123
const f = [1, 1];
124-
for (let i = 0; i < 100; i++) {
124+
for (let i = 0; i < 100; i += 1) {
125125
f.push(f[f.length - 1] + f[f.length - 2]);
126126
}
127127
//作成した配列の各要素を for ~ of 文を用いて出力

0 commit comments

Comments
 (0)