Skip to content

Commit 1132564

Browse files
committed
練習問題:逆順ソート
1 parent 80ec196 commit 1132564

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ rl.on('close', () => {
3737
return pair1[1].change -pair2[1].change;
3838
});
3939
const rankingStrings = rankingArray.map((pair, i) => {
40-
return (i + 1)+ '位:' + pair[0] + ': ' + pair[1].popu10 + '=>' + pair[1].popu15 + '変化率:' + pair[1].change;
40+
return (i + 1)+ '位  ' + pair[0] + ': ' + pair[1].popu10 + '=>' + pair[1].popu15 + '変化率:' + pair[1].change;
4141
});
4242
console.log(rankingStrings);
4343
});

intro-curriculum-3002

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 097ee46e5520e8eac4a650ec7a5331f2cf196553

0 commit comments

Comments
 (0)