Skip to content

Commit c3f88b4

Browse files
Merge pull request #10 from paulcarroty/patch-1
`console.log(fruit)` prints whole array, not the elements
2 parents 5a87bcd + a09d8fe commit c3f88b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ebook/07_iterables-and-looping.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ const fruit = ["apple","banana", "orange"];
126126
fruit.eat = "gnam gnam";
127127

128128
for (const prop of fruit){
129-
console.log(fruit);
129+
console.log(prop);
130130
}
131131
// apple
132132
// banana

0 commit comments

Comments
 (0)