Skip to content

Commit

Permalink
V07: Dodata sekcija za for-of
Browse files Browse the repository at this point in the history
  • Loading branch information
dr460r committed May 22, 2024
1 parent 1ae66ff commit 166f960
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions vezbe/07.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,13 @@ for(let i = 0; i < 10; i++) {
// ...
}
```
#### For-of (foreach)
```js
for(const element of array) {
// ...
}
```
_Umesto `const` može i `let`, efekat je uvek takav da se u svakoj iteraciji definiše nova promenljiva `element`._

### Text output
#### Log
Expand Down

0 comments on commit 166f960

Please sign in to comment.