Skip to content

Commit e51ecfb

Browse files
author
laryl.li
committed
small codestyle fixes
1 parent 3fbcb86 commit e51ecfb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
// 5. Sort the inventors by years lived
5555
const sortedYearsLived = inventors.sort(yearsLived);
5656

57-
function yearsLived(a,b){
57+
function yearsLived(a,b) {
5858
return ((b.passed-b.year)-(a.passed-a.year));
5959
}
6060

@@ -68,11 +68,11 @@
6868
// Sort the people alphabetically by last name
6969
const sortedLastName = people.sort(sortByLastName);
7070

71-
function sortByLastName(a,b){
71+
function sortByLastName(a,b) {
7272
return (getLastName(a)>getLastName(b));
7373
}
7474

75-
function getLastName(nameValue){
75+
function getLastName(nameValue) {
7676
let fullName = nameValue.split(", ");
7777
return fullName[0];
7878
}

0 commit comments

Comments
 (0)