mirror of
https://github.com/Fechin/reference.git
synced 2026-11-20 21:23:11 +03:00
For of loop
This commit is contained in:
1 parent
1a56e567db
commit
656d093eba
1 file changed
+8
@@ -701,6 +701,14 @@ for (let key in mobile) {
|
||||
}
|
||||
```
|
||||
|
||||
### for...of loop
|
||||
|
||||
```javascript
|
||||
let fruits = ["banana", "apple", "orange"];
|
||||
for (let fruit of fruits) {
|
||||
console.log(fruit);
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
JavaScript Iterators {.cols-2}
|
||||
|
||||
Reference in new issue
Block a user