Skip to content

Commit 2381275

Browse files
Marcin Mongiałoscottgonzalez
Marcin Mongiało
authored andcommitted
Arrays: Remove for in example
Ref jquerygh-321 Closes jquerygh-385
1 parent 4de79da commit 2381275

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

page/javascript-101/arrays.md

-14
Original file line numberDiff line numberDiff line change
@@ -89,20 +89,6 @@ for ( var i = 0; i < myArray.length; i = i + 1 ) {
8989
}
9090
```
9191

92-
Except when using `for`/`in` loops:
93-
94-
```
95-
// For loops and arrays - alternate method
96-
97-
var myArray = [ "hello", "world", "!" ];
98-
99-
for ( var i in myArray ) {
100-
101-
console.log( myArray[ i ] );
102-
103-
}
104-
```
105-
10692
### .concat()
10793

10894
Concatenate two or more arrays with `.concat()`:

0 commit comments

Comments
 (0)