Last active
March 2, 2019 13:54
-
-
Save haru01/0fb068937588c0a79d92f39768a61fbb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -4,10 +4,12 @@ function generateReadedReport(readedList, recommendList) { | |
| report += '-----\n'; | |
| + for (let readedBook of readedList.books) { | |
| + totalPoint += point(readedBook); | |
| + } | |
| + | |
| for (let readedBook of readedList.books) { | |
| if (readedBook.times >= 1) { | |
| report += ` - ${readedBook.name}: ${point(readedBook)} point\n`; | |
| } | |
| - | |
| - totalPoint += point(readedBook); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment