Skip to content

Commit 205ebb3

Browse files
committed
Update README.md
1 parent 4922813 commit 205ebb3

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

06_Array/README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,13 @@ arr是一个不重复数字组成的数组,在下面新增代码,
137137

138138
```js
139139
let arr = [1,5,3,9,6,8,10,7,12] //全部是不重复的数字
140-
// 新增代码
141-
140+
for(let num1 of arr){
141+
for(let num2 of arr){
142+
// 新增代码
143+
console.log(num1,num2) // num1+num2 == 18
144+
}
145+
}
142146

143-
console.log(num1,num2) // num1+num2 == 18
144147

145148
```
146149

0 commit comments

Comments
 (0)