Skip to content

Commit a09d8fe

Browse files
authored
console.log(fruit) prints whole array, not the elements
1 parent 5a87bcd commit a09d8fe

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)