From 3ca684f761b087d09ea46b69376b86e296c9f840 Mon Sep 17 00:00:00 2001 From: Abdur Rehman Date: Sat, 14 Sep 2024 20:55:57 +0500 Subject: [PATCH] Update article.md Add let before key in for (key in object) --- 1-js/04-object-basics/01-object/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/04-object-basics/01-object/article.md b/1-js/04-object-basics/01-object/article.md index 0fe5979fa6..94dd8e38b9 100644 --- a/1-js/04-object-basics/01-object/article.md +++ b/1-js/04-object-basics/01-object/article.md @@ -362,7 +362,7 @@ To walk over all keys of an object, there exists a special form of the loop: `fo The syntax: ```js -for (key in object) { +for (let key in object) { // executes the body for each key among object properties } ```