Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

Save haru01/a73ffe8f6ad52729996c8792cf74e75b to your computer and use it in GitHub Desktop.
@@ -7,2 +6,0 @@ function generateReadedReport(readedList, recommendList) {
- let currentPoint = point(readedBook);
-
@@ -10 +8 @@ function generateReadedReport(readedList, recommendList) {
- report += ` - ${readedBook.name}: ${currentPoint} point\n`;
+ report += ` - ${readedBook.name}: ${point(readedBook)} point\n`;
@@ -13 +11 @@ function generateReadedReport(readedList, recommendList) {
- totalPoint += currentPoint;
+ totalPoint += point(readedBook);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment