From a09d8febb9b5c5e103fdffddf50d906c1d1e85d4 Mon Sep 17 00:00:00 2001 From: Pavlo Rudyi Date: Sat, 30 Jun 2018 12:04:37 +0000 Subject: [PATCH] `console.log(fruit)` prints whole array, not the elements --- ebook/07_iterables-and-looping.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ebook/07_iterables-and-looping.md b/ebook/07_iterables-and-looping.md index 4d876b3..bb08146 100644 --- a/ebook/07_iterables-and-looping.md +++ b/ebook/07_iterables-and-looping.md @@ -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