Skip to content

Commit 59f2b7c

Browse files
committed
fix #58 variable name
1 parent d311720 commit 59f2b7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

04 - Array Cardio Day 1/index-SOYAINE.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@
132132
// 7. sort Exercise
133133
// Sort the people alphabetically by last name
134134
// 按照姓氏的字母进行排序
135-
const sortName = inventors.sort((a, b) => {
135+
const sortName = people.sort((a, b) => {
136136
return (a.last > b.last) ? 1 : -1;
137137
})
138138
console.table(sortName);

0 commit comments

Comments
 (0)