Skip to content

Commit f432fb3

Browse files
Fixed task 7
1 parent 0e3260b commit f432fb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Exercises/7-ages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const ages = persons => {
44
const data = {};
55
for (const name in persons) {
66
const person = persons[name];
7-
ages[name] = person.died - persons.born;
7+
data[name] = person.died - person.born;
88
}
99
return data;
1010
};

0 commit comments

Comments
 (0)