{"action":"created","comment":{"url":"https://api.github.com/repos/code-squad/javascript-grade/pulls/comments/175008787","pull_request_review_id":104467678,"id":175008787,"diff_hunk":"@@ -59,18 +52,29 @@\n \t\t\"D+\" : 1.5,\n \t\t\"D\" : 1.0,\n \t\t\"F\" : 0\n-\t}\n+};\n+\n+function showData(data, chagedFac = 4){\n+\tvar totalGrade = 0;\n+\tvar totalCredit = 0;\n+\tvar majorGrade = 0;\n+\tvar majorCredit = 0;\n+\tvar chagedTotalGrade = 0;\n+\n \tfor(let i = 0; i < data.length; i++){\n+\t    totalCredit += data[i][\"credit\"];\n+\t    let totalScore = gradesObj[data[i][\"grade\"]] * totalCredit;","path":"calculateGrade.html","position":null,"original_position":32,"commit_id":"2702ea15a3826aff10292c911200b5cc9a364b1b","original_commit_id":"2702ea15a3826aff10292c911200b5cc9a364b1b","user":{"login":"nigayo","id":1456761,"avatar_url":"https://avatars2.githubusercontent.com/u/1456761?v=4","gravatar_id":"","url":"https://api.github.com/users/nigayo","html_url":"https://github.com/nigayo","followers_url":"https://api.github.com/users/nigayo/followers","following_url":"https://api.github.com/users/nigayo/following{/other_user}","gists_url":"https://api.github.com/users/nigayo/gists{/gist_id}","starred_url":"https://api.github.com/users/nigayo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nigayo/subscriptions","organizations_url":"https://api.github.com/users/nigayo/orgs","repos_url":"https://api.github.com/users/nigayo/repos","events_url":"https://api.github.com/users/nigayo/events{/privacy}","received_events_url":"https://api.github.com/users/nigayo/received_events","type":"User","site_admin":false},"body":"변수활용은 늘 중요해요~","created_at":"2018-03-16T06:52:04Z","updated_at":"2018-03-16T06:52:38Z","html_url":"https://github.com/code-squad/javascript-grade/pull/15#discussion_r175008787","pull_request_url":"https://api.github.com/repos/code-squad/javascript-grade/pulls/15","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/code-squad/javascript-grade/pulls/comments/175008787"},"html":{"href":"https://github.com/code-squad/javascript-grade/pull/15#discussion_r175008787"},"pull_request":{"href":"https://api.github.com/repos/code-squad/javascript-grade/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/code-squad/javascript-grade/pulls/15","id":175180387,"html_url":"https://github.com/code-squad/javascript-grade/pull/15","diff_url":"https://github.com/code-squad/javascript-grade/pull/15.diff","patch_url":"https://github.com/code-squad/javascript-grade/pull/15.patch","issue_url":"https://api.github.com/repos/code-squad/javascript-grade/issues/15","number":15,"state":"open","locked":false,"title":"[woogie]학점계산기","user":{"login":"Imdonguk","id":36391296,"avatar_url":"https://avatars0.githubusercontent.com/u/36391296?v=4","gravatar_id":"","url":"https://api.github.com/users/Imdonguk","html_url":"https://github.com/Imdonguk","followers_url":"https://api.github.com/users/Imdonguk/followers","following_url":"https://api.github.com/users/Imdonguk/following{/other_user}","gists_url":"https://api.github.com/users/Imdonguk/gists{/gist_id}","starred_url":"https://api.github.com/users/Imdonguk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Imdonguk/subscriptions","organizations_url":"https://api.github.com/users/Imdonguk/orgs","repos_url":"https://api.github.com/users/Imdonguk/repos","events_url":"https://api.github.com/users/Imdonguk/events{/privacy}","received_events_url":"https://api.github.com/users/Imdonguk/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-15T08:41:20Z","updated_at":"2018-03-16T06:52:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ec9964c4c5cc9b0c22f8d82c56b692b9f8d2ceb9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/code-squad/javascript-grade/pulls/15/commits","review_comments_url":"https://api.github.com/repos/code-squad/javascript-grade/pulls/15/comments","review_comment_url":"https://api.github.com/repos/code-squad/javascript-grade/pulls/comments{/number}","comments_url":"https://api.github.com/repos/code-squad/javascript-grade/issues/15/comments","statuses_url":"https://api.github.com/repos/code-squad/javascript-grade/statuses/2702ea15a3826aff10292c911200b5cc9a364b1b","head":{"label":"Imdonguk:imdonguk","ref":"imdonguk","sha":"2702ea15a3826aff10292c911200b5cc9a364b1b","user":{"login":"Imdonguk","id":36391296,"avatar_url":"https://avatars0.githubusercontent.com/u/36391296?v=4","gravatar_id":"","url":"https://api.github.com/users/Imdonguk","html_url":"https://github.com/Imdonguk","followers_url":"https://api.github.com/users/Imdonguk/followers","following_url":"https://api.github.com/users/Imdonguk/following{/other_user}","gists_url":"https://api.github.com/users/Imdonguk/gists{/gist_id}","starred_url":"https://api.github.com/users/Imdonguk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Imdonguk/subscriptions","organizations_url":"https://api.github.com/users/Imdonguk/orgs","repos_url":"https://api.github.com/users/Imdonguk/repos","events_url":"https://api.github.com/users/Imdonguk/events{/privacy}","received_events_url":"https://api.github.com/users/Imdonguk/received_events","type":"User","site_admin":false},"repo":{"id":125198912,"name":"javascript-grade","full_name":"Imdonguk/javascript-grade","owner":{"login":"Imdonguk","id":36391296,"avatar_url":"https://avatars0.githubusercontent.com/u/36391296?v=4","gravatar_id":"","url":"https://api.github.com/users/Imdonguk","html_url":"https://github.com/Imdonguk","followers_url":"https://api.github.com/users/Imdonguk/followers","following_url":"https://api.github.com/users/Imdonguk/following{/other_user}","gists_url":"https://api.github.com/users/Imdonguk/gists{/gist_id}","starred_url":"https://api.github.com/users/Imdonguk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Imdonguk/subscriptions","organizations_url":"https://api.github.com/users/Imdonguk/orgs","repos_url":"https://api.github.com/users/Imdonguk/repos","events_url":"https://api.github.com/users/Imdonguk/events{/privacy}","received_events_url":"https://api.github.com/users/Imdonguk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Imdonguk/javascript-grade","description":"레벨2","fork":true,"url":"https://api.github.com/repos/Imdonguk/javascript-grade","forks_url":"https://api.github.com/repos/Imdonguk/javascript-grade/forks","keys_url":"https://api.github.com/repos/Imdonguk/javascript-grade/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Imdonguk/javascript-grade/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Imdonguk/javascript-grade/teams","hooks_url":"https://api.github.com/repos/Imdonguk/javascript-grade/hooks","issue_events_url":"https://api.github.com/repos/Imdonguk/javascript-grade/issues/events{/number}","events_url":"https://api.github.com/repos/Imdonguk/javascript-grade/events","assignees_url":"https://api.github.com/repos/Imdonguk/javascript-grade/assignees{/user}","branches_url":"https://api.github.com/repos/Imdonguk/javascript-grade/branches{/branch}","tags_url":"https://api.github.com/repos/Imdonguk/javascript-grade/tags","blobs_url":"https://api.github.com/repos/Imdonguk/javascript-grade/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Imdonguk/javascript-grade/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Imdonguk/javascript-grade/git/refs{/sha}","trees_url":"https://api.github.com/repos/Imdonguk/javascript-grade/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Imdonguk/javascript-grade/statuses/{sha}","languages_url":"https://api.github.com/repos/Imdonguk/javascript-grade/languages","stargazers_url":"https://api.github.com/repos/Imdonguk/javascript-grade/stargazers","contributors_url":"https://api.github.com/repos/Imdonguk/javascript-grade/contributors","subscribers_url":"https://api.github.com/repos/Imdonguk/javascript-grade/subscribers","subscription_url":"https://api.github.com/repos/Imdonguk/javascript-grade/subscription","commits_url":"https://api.github.com/repos/Imdonguk/javascript-grade/commits{/sha}","git_commits_url":"https://api.github.com/repos/Imdonguk/javascript-grade/git/commits{/sha}","comments_url":"https://api.github.com/repos/Imdonguk/javascript-grade/comments{/number}","issue_comment_url":"https://api.github.com/repos/Imdonguk/javascript-grade/issues/comments{/number}","contents_url":"https://api.github.com/repos/Imdonguk/javascript-grade/contents/{+path}","compare_url":"https://api.github.com/repos/Imdonguk/javascript-grade/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Imdonguk/javascript-grade/merges","archive_url":"https://api.github.com/repos/Imdonguk/javascript-grade/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Imdonguk/javascript-grade/downloads","issues_url":"https://api.github.com/repos/Imdonguk/javascript-grade/issues{/number}","pulls_url":"https://api.github.com/repos/Imdonguk/javascript-grade/pulls{/number}","milestones_url":"https://api.github.com/repos/Imdonguk/javascript-grade/milestones{/number}","notifications_url":"https://api.github.com/repos/Imdonguk/javascript-grade/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Imdonguk/javascript-grade/labels{/name}","releases_url":"https://api.github.com/repos/Imdonguk/javascript-grade/releases{/id}","deployments_url":"https://api.github.com/repos/Imdonguk/javascript-grade/deployments","created_at":"2018-03-14T10:57:00Z","updated_at":"2018-03-14T10:57:02Z","pushed_at":"2018-03-16T03:17:18Z","git_url":"git://github.com/Imdonguk/javascript-grade.git","ssh_url":"git@github.com:Imdonguk/javascript-grade.git","clone_url":"https://github.com/Imdonguk/javascript-grade.git","svn_url":"https://github.com/Imdonguk/javascript-grade","homepage":null,"size":36,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"code-squad:imdonguk","ref":"imdonguk","sha":"daa99ac6205d7e9bdab310ec084403091cc79458","user":{"login":"code-squad","id":22832280,"avatar_url":"https://avatars2.githubusercontent.com/u/22832280?v=4","gravatar_id":"","url":"https://api.github.com/users/code-squad","html_url":"https://github.com/code-squad","followers_url":"https://api.github.com/users/code-squad/followers","following_url":"https://api.github.com/users/code-squad/following{/other_user}","gists_url":"https://api.github.com/users/code-squad/gists{/gist_id}","starred_url":"https://api.github.com/users/code-squad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-squad/subscriptions","organizations_url":"https://api.github.com/users/code-squad/orgs","repos_url":"https://api.github.com/users/code-squad/repos","events_url":"https://api.github.com/users/code-squad/events{/privacy}","received_events_url":"https://api.github.com/users/code-squad/received_events","type":"Organization","site_admin":false},"repo":{"id":107010068,"name":"javascript-grade","full_name":"code-squad/javascript-grade","owner":{"login":"code-squad","id":22832280,"avatar_url":"https://avatars2.githubusercontent.com/u/22832280?v=4","gravatar_id":"","url":"https://api.github.com/users/code-squad","html_url":"https://github.com/code-squad","followers_url":"https://api.github.com/users/code-squad/followers","following_url":"https://api.github.com/users/code-squad/following{/other_user}","gists_url":"https://api.github.com/users/code-squad/gists{/gist_id}","starred_url":"https://api.github.com/users/code-squad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-squad/subscriptions","organizations_url":"https://api.github.com/users/code-squad/orgs","repos_url":"https://api.github.com/users/code-squad/repos","events_url":"https://api.github.com/users/code-squad/events{/privacy}","received_events_url":"https://api.github.com/users/code-squad/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/code-squad/javascript-grade","description":"레벨2","fork":false,"url":"https://api.github.com/repos/code-squad/javascript-grade","forks_url":"https://api.github.com/repos/code-squad/javascript-grade/forks","keys_url":"https://api.github.com/repos/code-squad/javascript-grade/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code-squad/javascript-grade/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code-squad/javascript-grade/teams","hooks_url":"https://api.github.com/repos/code-squad/javascript-grade/hooks","issue_events_url":"https://api.github.com/repos/code-squad/javascript-grade/issues/events{/number}","events_url":"https://api.github.com/repos/code-squad/javascript-grade/events","assignees_url":"https://api.github.com/repos/code-squad/javascript-grade/assignees{/user}","branches_url":"https://api.github.com/repos/code-squad/javascript-grade/branches{/branch}","tags_url":"https://api.github.com/repos/code-squad/javascript-grade/tags","blobs_url":"https://api.github.com/repos/code-squad/javascript-grade/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code-squad/javascript-grade/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code-squad/javascript-grade/git/refs{/sha}","trees_url":"https://api.github.com/repos/code-squad/javascript-grade/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code-squad/javascript-grade/statuses/{sha}","languages_url":"https://api.github.com/repos/code-squad/javascript-grade/languages","stargazers_url":"https://api.github.com/repos/code-squad/javascript-grade/stargazers","contributors_url":"https://api.github.com/repos/code-squad/javascript-grade/contributors","subscribers_url":"https://api.github.com/repos/code-squad/javascript-grade/subscribers","subscription_url":"https://api.github.com/repos/code-squad/javascript-grade/subscription","commits_url":"https://api.github.com/repos/code-squad/javascript-grade/commits{/sha}","git_commits_url":"https://api.github.com/repos/code-squad/javascript-grade/git/commits{/sha}","comments_url":"https://api.github.com/repos/code-squad/javascript-grade/comments{/number}","issue_comment_url":"https://api.github.com/repos/code-squad/javascript-grade/issues/comments{/number}","contents_url":"https://api.github.com/repos/code-squad/javascript-grade/contents/{+path}","compare_url":"https://api.github.com/repos/code-squad/javascript-grade/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code-squad/javascript-grade/merges","archive_url":"https://api.github.com/repos/code-squad/javascript-grade/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code-squad/javascript-grade/downloads","issues_url":"https://api.github.com/repos/code-squad/javascript-grade/issues{/number}","pulls_url":"https://api.github.com/repos/code-squad/javascript-grade/pulls{/number}","milestones_url":"https://api.github.com/repos/code-squad/javascript-grade/milestones{/number}","notifications_url":"https://api.github.com/repos/code-squad/javascript-grade/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code-squad/javascript-grade/labels{/name}","releases_url":"https://api.github.com/repos/code-squad/javascript-grade/releases{/id}","deployments_url":"https://api.github.com/repos/code-squad/javascript-grade/deployments","created_at":"2017-10-15T12:27:20Z","updated_at":"2018-03-13T01:45:25Z","pushed_at":"2018-03-16T05:40:38Z","git_url":"git://github.com/code-squad/javascript-grade.git","ssh_url":"git@github.com:code-squad/javascript-grade.git","clone_url":"https://github.com/code-squad/javascript-grade.git","svn_url":"https://github.com/code-squad/javascript-grade","homepage":null,"size":34,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":10,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":10,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/code-squad/javascript-grade/pulls/15"},"html":{"href":"https://github.com/code-squad/javascript-grade/pull/15"},"issue":{"href":"https://api.github.com/repos/code-squad/javascript-grade/issues/15"},"comments":{"href":"https://api.github.com/repos/code-squad/javascript-grade/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/code-squad/javascript-grade/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/code-squad/javascript-grade/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/code-squad/javascript-grade/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/code-squad/javascript-grade/statuses/2702ea15a3826aff10292c911200b5cc9a364b1b"}},"author_association":"NONE"}}
{"actor":{"display_login":"nigayo"}}