質問編集履歴
1
`for-of構文`を用いた場合のソースコードと, エラーを追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -39,6 +39,10 @@
|
|
39
39
|
for (let i = 0; i < 100; i++) {
|
40
40
|
console.log(iter5.next().value);
|
41
41
|
}
|
42
|
+
|
43
|
+
for (it of iter) {
|
44
|
+
console.log(it.value); // => TypeError: iter is not iterable
|
45
|
+
}
|
42
46
|
```
|
43
47
|
|
44
48
|
### 補足情報(FW/ツールのバージョンなど)
|