Merge pull request #136 from mg-chao/20220106_iterator

[3.3.2. 迭代器iterator] JS 代码示例的一个小修复
pull/141/head
Sunface 3 years ago committed by GitHub
commit b66ffeac44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,7 +9,7 @@
例如以下的JS代码就是一个循环: 例如以下的JS代码就是一个循环:
```javascript ```javascript
let arr = [1, 2, 3]; let arr = [1, 2, 3];
for i = 0; i < arr.length() - 1; i ++ { for (let i = 0; i < arr.length; i++) {
console.log(arr[i]); console.log(arr[i]);
} }
``` ```

Loading…
Cancel
Save