Skip to content

Instantly share code, notes, and snippets.

@haru01
Last active March 2, 2019 14:05
Show Gist options
  • Select an option

  • Save haru01/40eff61fd7c9affa2f09e6223417d147 to your computer and use it in GitHub Desktop.

Select an option

Save haru01/40eff61fd7c9affa2f09e6223417d147 to your computer and use it in GitHub Desktop.
@@ -3,5 +3,2 @@ function generateReadedReport(readedList, recommendList) {
report += '-----\n';
-
- let totalPoint = total();
-
for (let readedBook of readedList.books) {
@@ -11,5 +8,4 @@ function generateReadedReport(readedList, recommendList) {
}
-
report += '-----\n';
- report += `total: ${totalPoint} point`;
+ report += `total: ${total()} point`;
return report;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment