Skip to content

Commit

Permalink
Merge pull request #10 from paulcarroty/patch-1
Browse files Browse the repository at this point in the history
`console.log(fruit)` prints whole array, not the elements
  • Loading branch information
AlbertoMontalesi committed Jul 1, 2018
2 parents 5a87bcd + a09d8fe commit c3f88b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ebook/07_iterables-and-looping.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const fruit = ["apple","banana", "orange"];
fruit.eat = "gnam gnam";

for (const prop of fruit){
console.log(fruit);
console.log(prop);
}
// apple
// banana
Expand Down

0 comments on commit c3f88b4

Please sign in to comment.