Skip to content

Commit b1aa75d

Browse files
changed loop to log just the values
1 parent e098bba commit b1aa75d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sprint-2/debug/author.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ const author = {
1111
alive: true,
1212
};
1313

14-
for (const value in author) {
15-
console.log(`${value}:${author[value]}`);
14+
for (const value of Object.values(author)) {
15+
console.log(value);
1616
}

0 commit comments

Comments
 (0)