{"action":"created","comment":{"url":"https://api.github.com/repos/ga-wdi-exercises/checkout/pulls/comments/57362228","id":57362228,"diff_hunk":"@@ -1,38 +1,44 @@\n // add shopping cart to app, then add methods to shopping cart\n app.shoppingCart = {\n   initialize: function(){\n-    console.log(\"Initializing shoppingCart \");\n+    console.log(\"Initializing shoppingCart\");\n     // start with an empty Array of items\n-    this.items = {};\n+    this.items = [];\n   },\n \n   add_item: function(name, price){\n-    this.items.push([ name: name, cost: cost, weight: weight, size: size ]);\n+    this.items.push({ name: name, cost: cost, weight: weight, size: size });\n   },\n \n   calculateShipping: function(item){\n     var shipping = 0;\n     var weight = item.weight || 5;\n-    if(weight < 50){\n+    if(weight < 5){\n+      shipping +=0;\n+    } else if (weight < 50) {\n       shipping += 5;\n     } else {\n-      shipping += 10\n+      shipping += 10;\n     }\n \n     switch(item.size){\n+      case \"small\":\n+        shipping += 0;\n+        break;\n       case \"large\":\n         shipping += 50;\n         break;\n       case \"ludicrous\":\n-        shipping += 2550;\n-        break;\n+      shipping += 2550;\n+      break;\n       default:\n         throw(new Error(\"Unsupported size: \" + item.size));\n     }\n-    shipping;\n+  return  shipping += 2550;","path":"scripts/shopping_cart.js","position":45,"original_position":45,"commit_id":"ac4576134823fa32050c773c574abc3d275a4fb2","original_commit_id":"ac4576134823fa32050c773c574abc3d275a4fb2","user":{"login":"andrewsunglaekim","id":8976305,"avatar_url":"https://avatars.githubusercontent.com/u/8976305?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewsunglaekim","html_url":"https://github.com/andrewsunglaekim","followers_url":"https://api.github.com/users/andrewsunglaekim/followers","following_url":"https://api.github.com/users/andrewsunglaekim/following{/other_user}","gists_url":"https://api.github.com/users/andrewsunglaekim/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewsunglaekim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewsunglaekim/subscriptions","organizations_url":"https://api.github.com/users/andrewsunglaekim/orgs","repos_url":"https://api.github.com/users/andrewsunglaekim/repos","events_url":"https://api.github.com/users/andrewsunglaekim/events{/privacy}","received_events_url":"https://api.github.com/users/andrewsunglaekim/received_events","type":"User","site_admin":false},"body":"So this line of code will increase the total of the shipping by 2550 after all of its calculations. I think you want to just return shipping here.","created_at":"2016-03-24T18:11:41Z","updated_at":"2016-03-24T18:11:41Z","html_url":"https://github.com/ga-wdi-exercises/checkout/pull/11#discussion_r57362228","pull_request_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/ga-wdi-exercises/checkout/pulls/comments/57362228"},"html":{"href":"https://github.com/ga-wdi-exercises/checkout/pull/11#discussion_r57362228"},"pull_request":{"href":"https://api.github.com/repos/ga-wdi-exercises/checkout/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/ga-wdi-exercises/checkout/pulls/11","id":63877548,"html_url":"https://github.com/ga-wdi-exercises/checkout/pull/11","diff_url":"https://github.com/ga-wdi-exercises/checkout/pull/11.diff","patch_url":"https://github.com/ga-wdi-exercises/checkout/pull/11.patch","issue_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/issues/11","number":11,"state":"open","locked":false,"title":"Debugging/Checkout ","user":{"login":"JoshNezi","id":8755620,"avatar_url":"https://avatars.githubusercontent.com/u/8755620?v=3","gravatar_id":"","url":"https://api.github.com/users/JoshNezi","html_url":"https://github.com/JoshNezi","followers_url":"https://api.github.com/users/JoshNezi/followers","following_url":"https://api.github.com/users/JoshNezi/following{/other_user}","gists_url":"https://api.github.com/users/JoshNezi/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshNezi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshNezi/subscriptions","organizations_url":"https://api.github.com/users/JoshNezi/orgs","repos_url":"https://api.github.com/users/JoshNezi/repos","events_url":"https://api.github.com/users/JoshNezi/events{/privacy}","received_events_url":"https://api.github.com/users/JoshNezi/received_events","type":"User","site_admin":false},"body":"Level of Completeness 2\r\nLevel of Comfort 2","created_at":"2016-03-23T12:58:48Z","updated_at":"2016-03-24T18:11:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d9e3e853c0932f259dbcb0d7795bb51ac93c0596","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/pulls/11/commits","review_comments_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/pulls/11/comments","review_comment_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/issues/11/comments","statuses_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/statuses/ac4576134823fa32050c773c574abc3d275a4fb2","head":{"label":"JoshNezi:master","ref":"master","sha":"ac4576134823fa32050c773c574abc3d275a4fb2","user":{"login":"JoshNezi","id":8755620,"avatar_url":"https://avatars.githubusercontent.com/u/8755620?v=3","gravatar_id":"","url":"https://api.github.com/users/JoshNezi","html_url":"https://github.com/JoshNezi","followers_url":"https://api.github.com/users/JoshNezi/followers","following_url":"https://api.github.com/users/JoshNezi/following{/other_user}","gists_url":"https://api.github.com/users/JoshNezi/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshNezi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshNezi/subscriptions","organizations_url":"https://api.github.com/users/JoshNezi/orgs","repos_url":"https://api.github.com/users/JoshNezi/repos","events_url":"https://api.github.com/users/JoshNezi/events{/privacy}","received_events_url":"https://api.github.com/users/JoshNezi/received_events","type":"User","site_admin":false},"repo":{"id":54535714,"name":"checkout","full_name":"JoshNezi/checkout","owner":{"login":"JoshNezi","id":8755620,"avatar_url":"https://avatars.githubusercontent.com/u/8755620?v=3","gravatar_id":"","url":"https://api.github.com/users/JoshNezi","html_url":"https://github.com/JoshNezi","followers_url":"https://api.github.com/users/JoshNezi/followers","following_url":"https://api.github.com/users/JoshNezi/following{/other_user}","gists_url":"https://api.github.com/users/JoshNezi/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshNezi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshNezi/subscriptions","organizations_url":"https://api.github.com/users/JoshNezi/orgs","repos_url":"https://api.github.com/users/JoshNezi/repos","events_url":"https://api.github.com/users/JoshNezi/events{/privacy}","received_events_url":"https://api.github.com/users/JoshNezi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JoshNezi/checkout","description":"Debugging the ShoppingCart [javascript, debug]","fork":true,"url":"https://api.github.com/repos/JoshNezi/checkout","forks_url":"https://api.github.com/repos/JoshNezi/checkout/forks","keys_url":"https://api.github.com/repos/JoshNezi/checkout/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JoshNezi/checkout/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JoshNezi/checkout/teams","hooks_url":"https://api.github.com/repos/JoshNezi/checkout/hooks","issue_events_url":"https://api.github.com/repos/JoshNezi/checkout/issues/events{/number}","events_url":"https://api.github.com/repos/JoshNezi/checkout/events","assignees_url":"https://api.github.com/repos/JoshNezi/checkout/assignees{/user}","branches_url":"https://api.github.com/repos/JoshNezi/checkout/branches{/branch}","tags_url":"https://api.github.com/repos/JoshNezi/checkout/tags","blobs_url":"https://api.github.com/repos/JoshNezi/checkout/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JoshNezi/checkout/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JoshNezi/checkout/git/refs{/sha}","trees_url":"https://api.github.com/repos/JoshNezi/checkout/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JoshNezi/checkout/statuses/{sha}","languages_url":"https://api.github.com/repos/JoshNezi/checkout/languages","stargazers_url":"https://api.github.com/repos/JoshNezi/checkout/stargazers","contributors_url":"https://api.github.com/repos/JoshNezi/checkout/contributors","subscribers_url":"https://api.github.com/repos/JoshNezi/checkout/subscribers","subscription_url":"https://api.github.com/repos/JoshNezi/checkout/subscription","commits_url":"https://api.github.com/repos/JoshNezi/checkout/commits{/sha}","git_commits_url":"https://api.github.com/repos/JoshNezi/checkout/git/commits{/sha}","comments_url":"https://api.github.com/repos/JoshNezi/checkout/comments{/number}","issue_comment_url":"https://api.github.com/repos/JoshNezi/checkout/issues/comments{/number}","contents_url":"https://api.github.com/repos/JoshNezi/checkout/contents/{+path}","compare_url":"https://api.github.com/repos/JoshNezi/checkout/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JoshNezi/checkout/merges","archive_url":"https://api.github.com/repos/JoshNezi/checkout/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JoshNezi/checkout/downloads","issues_url":"https://api.github.com/repos/JoshNezi/checkout/issues{/number}","pulls_url":"https://api.github.com/repos/JoshNezi/checkout/pulls{/number}","milestones_url":"https://api.github.com/repos/JoshNezi/checkout/milestones{/number}","notifications_url":"https://api.github.com/repos/JoshNezi/checkout/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JoshNezi/checkout/labels{/name}","releases_url":"https://api.github.com/repos/JoshNezi/checkout/releases{/id}","deployments_url":"https://api.github.com/repos/JoshNezi/checkout/deployments","created_at":"2016-03-23T06:16:49Z","updated_at":"2016-03-23T06:16:49Z","pushed_at":"2016-03-23T12:48:31Z","git_url":"git://github.com/JoshNezi/checkout.git","ssh_url":"git@github.com:JoshNezi/checkout.git","clone_url":"https://github.com/JoshNezi/checkout.git","svn_url":"https://github.com/JoshNezi/checkout","homepage":null,"size":6,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ga-wdi-exercises:master","ref":"master","sha":"8fae80267de4fb70e79648b23495867a752491f6","user":{"login":"ga-wdi-exercises","id":16946328,"avatar_url":"https://avatars.githubusercontent.com/u/16946328?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-wdi-exercises","html_url":"https://github.com/ga-wdi-exercises","followers_url":"https://api.github.com/users/ga-wdi-exercises/followers","following_url":"https://api.github.com/users/ga-wdi-exercises/following{/other_user}","gists_url":"https://api.github.com/users/ga-wdi-exercises/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-wdi-exercises/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-wdi-exercises/subscriptions","organizations_url":"https://api.github.com/users/ga-wdi-exercises/orgs","repos_url":"https://api.github.com/users/ga-wdi-exercises/repos","events_url":"https://api.github.com/users/ga-wdi-exercises/events{/privacy}","received_events_url":"https://api.github.com/users/ga-wdi-exercises/received_events","type":"Organization","site_admin":false},"repo":{"id":44288353,"name":"checkout","full_name":"ga-wdi-exercises/checkout","owner":{"login":"ga-wdi-exercises","id":16946328,"avatar_url":"https://avatars.githubusercontent.com/u/16946328?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-wdi-exercises","html_url":"https://github.com/ga-wdi-exercises","followers_url":"https://api.github.com/users/ga-wdi-exercises/followers","following_url":"https://api.github.com/users/ga-wdi-exercises/following{/other_user}","gists_url":"https://api.github.com/users/ga-wdi-exercises/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-wdi-exercises/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-wdi-exercises/subscriptions","organizations_url":"https://api.github.com/users/ga-wdi-exercises/orgs","repos_url":"https://api.github.com/users/ga-wdi-exercises/repos","events_url":"https://api.github.com/users/ga-wdi-exercises/events{/privacy}","received_events_url":"https://api.github.com/users/ga-wdi-exercises/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ga-wdi-exercises/checkout","description":"Debugging the ShoppingCart [javascript, debug]","fork":false,"url":"https://api.github.com/repos/ga-wdi-exercises/checkout","forks_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/forks","keys_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/teams","hooks_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/hooks","issue_events_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/issues/events{/number}","events_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/events","assignees_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/assignees{/user}","branches_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/branches{/branch}","tags_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/tags","blobs_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/git/refs{/sha}","trees_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/statuses/{sha}","languages_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/languages","stargazers_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/stargazers","contributors_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/contributors","subscribers_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/subscribers","subscription_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/subscription","commits_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/commits{/sha}","git_commits_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/git/commits{/sha}","comments_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/comments{/number}","issue_comment_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/issues/comments{/number}","contents_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/contents/{+path}","compare_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/merges","archive_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/downloads","issues_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/issues{/number}","pulls_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/pulls{/number}","milestones_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/milestones{/number}","notifications_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/labels{/name}","releases_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/releases{/id}","deployments_url":"https://api.github.com/repos/ga-wdi-exercises/checkout/deployments","created_at":"2015-10-15T02:16:04Z","updated_at":"2016-02-02T23:46:28Z","pushed_at":"2016-03-24T12:52:11Z","git_url":"git://github.com/ga-wdi-exercises/checkout.git","ssh_url":"git@github.com:ga-wdi-exercises/checkout.git","clone_url":"https://github.com/ga-wdi-exercises/checkout.git","svn_url":"https://github.com/ga-wdi-exercises/checkout","homepage":null,"size":5,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":4,"forks":15,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ga-wdi-exercises/checkout/pulls/11"},"html":{"href":"https://github.com/ga-wdi-exercises/checkout/pull/11"},"issue":{"href":"https://api.github.com/repos/ga-wdi-exercises/checkout/issues/11"},"comments":{"href":"https://api.github.com/repos/ga-wdi-exercises/checkout/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/ga-wdi-exercises/checkout/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/ga-wdi-exercises/checkout/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ga-wdi-exercises/checkout/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/ga-wdi-exercises/checkout/statuses/ac4576134823fa32050c773c574abc3d275a4fb2"}}}}