Skip to content

Commit ed9cce6

Browse files
committed
clarify for...in loop iteration over object keys vs values.
1 parent 0a18845 commit ed9cce6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sprint-2/debug/author.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ const author = {
1313
alive: true,
1414
};
1515

16-
for (const value in author) {
17-
console.log(value);
18-
}
16+
for (const key in author) {
17+
console.log(author[key]);
18+
}

0 commit comments

Comments
 (0)