fix: JS for loop code example

pull/136/head
mg-chao 3 years ago
parent 15c5aea168
commit aa0a464f29

@ -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