{"action":"created","comment":{"url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/pulls/comments/182870452","pull_request_review_id":113759432,"id":182870452,"diff_hunk":"@@ -1,23 +1,20 @@\n // Take the commented ES5 syntax and convert it to ES6 arrow Syntax\n \n-// let myFunction = function () {};\n+let myFunction = () => {};\n \n-// let anotherFunction = function (param) {\n-//   return param;\n-// };\n \n-// let add = function (param1, param2) {\n-//   return param1 + param2;\n-// };\n-// add(1,2);\n+let anotherFunction = (param) => {\n+  return param;\n+}\n \n-// let subtract = function (param1, param2) {\n-//   return param1 + param2;\n-// };\n-// subtract(1,2);\n+\n+let subtract = (param1, param2) => {\n+  return param1 - param2;\n+};\n+subtract(1,2); //?\n \n exampleArray = [1,2,3,4];\n-// const triple = exampleArray.map(function (num) {\n-//   return num * 3;\n-// });\n-// console.log(triple);\n\\ No newline at end of file\n+\n+\n+const triple = exampleArray.map((num) => num * 3);\n+console.log(triple);","path":"assignments/function-conversion.js","position":37,"original_position":37,"commit_id":"807b399960b4bc3ae9d229cb299975f6fe13a36c","original_commit_id":"807b399960b4bc3ae9d229cb299975f6fe13a36c","user":{"login":"nphillips78","id":32022560,"avatar_url":"https://avatars0.githubusercontent.com/u/32022560?v=4","gravatar_id":"","url":"https://api.github.com/users/nphillips78","html_url":"https://github.com/nphillips78","followers_url":"https://api.github.com/users/nphillips78/followers","following_url":"https://api.github.com/users/nphillips78/following{/other_user}","gists_url":"https://api.github.com/users/nphillips78/gists{/gist_id}","starred_url":"https://api.github.com/users/nphillips78/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nphillips78/subscriptions","organizations_url":"https://api.github.com/users/nphillips78/orgs","repos_url":"https://api.github.com/users/nphillips78/repos","events_url":"https://api.github.com/users/nphillips78/events{/privacy}","received_events_url":"https://api.github.com/users/nphillips78/received_events","type":"User","site_admin":false},"body":"Awesome!","created_at":"2018-04-19T20:12:10Z","updated_at":"2018-04-19T20:12:10Z","html_url":"https://github.com/LambdaSchool/JavaScript-II/pull/17#discussion_r182870452","pull_request_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/pulls/17","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/LambdaSchool/JavaScript-II/pulls/comments/182870452"},"html":{"href":"https://github.com/LambdaSchool/JavaScript-II/pull/17#discussion_r182870452"},"pull_request":{"href":"https://api.github.com/repos/LambdaSchool/JavaScript-II/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/pulls/17","id":182273934,"html_url":"https://github.com/LambdaSchool/JavaScript-II/pull/17","diff_url":"https://github.com/LambdaSchool/JavaScript-II/pull/17.diff","patch_url":"https://github.com/LambdaSchool/JavaScript-II/pull/17.patch","issue_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/issues/17","number":17,"state":"open","locked":false,"title":"Kelly Frohwein","user":{"login":"kelfro","id":37552307,"avatar_url":"https://avatars0.githubusercontent.com/u/37552307?v=4","gravatar_id":"","url":"https://api.github.com/users/kelfro","html_url":"https://github.com/kelfro","followers_url":"https://api.github.com/users/kelfro/followers","following_url":"https://api.github.com/users/kelfro/following{/other_user}","gists_url":"https://api.github.com/users/kelfro/gists{/gist_id}","starred_url":"https://api.github.com/users/kelfro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelfro/subscriptions","organizations_url":"https://api.github.com/users/kelfro/orgs","repos_url":"https://api.github.com/users/kelfro/repos","events_url":"https://api.github.com/users/kelfro/events{/privacy}","received_events_url":"https://api.github.com/users/kelfro/received_events","type":"User","site_admin":false},"body":"## JavaScript II\r\n\r\n### Function Conversion\r\nConvert the ES5 syntax into ES6 arrow syntax\r\n- [x] myFunction\r\n- [x] anotherFunction\r\n- [ ] add - there was only a subtract function\r\n- [x] subtract\r\n- [x] triple\r\n\r\n### Array Methods\r\n- [x] Challenge 1: Use .forEach()\r\n- [x] Challenge 2: Use .map()\r\n- [x] Challenge 3: Use .filter()\r\n- [x] Challenge 4: Use .reduce()\r\n- [x] (1/3) Challenge 5: Be Creative\r\n- [x] (2/3) Challenge 5: Be Creative\r\n- [x] (3/3) Challenge 5: Be Creative\r\n\r\n### Closures\r\n- [x] Challenge 1: Write your own closure\r\n- [x] Challenge 2: Create a counter function\r\n- [x] Challenge 3: Create a counter function with an object that can increment or decrement\r\n\r\n## Good Habits\r\n- [x] Pull Request title is your first and last name (add any notes in the comment field)\r\n- [x] Code has been committed regularly\r\n- [x] Commit comments are informative\r\n- [x] Code is organized in a logical way\r\n","created_at":"2018-04-17T19:43:51Z","updated_at":"2018-04-19T20:12:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/pulls/17/commits","review_comments_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/pulls/17/comments","review_comment_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/issues/17/comments","statuses_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/statuses/807b399960b4bc3ae9d229cb299975f6fe13a36c","head":{"label":"kelfro:master","ref":"master","sha":"807b399960b4bc3ae9d229cb299975f6fe13a36c","user":{"login":"kelfro","id":37552307,"avatar_url":"https://avatars0.githubusercontent.com/u/37552307?v=4","gravatar_id":"","url":"https://api.github.com/users/kelfro","html_url":"https://github.com/kelfro","followers_url":"https://api.github.com/users/kelfro/followers","following_url":"https://api.github.com/users/kelfro/following{/other_user}","gists_url":"https://api.github.com/users/kelfro/gists{/gist_id}","starred_url":"https://api.github.com/users/kelfro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelfro/subscriptions","organizations_url":"https://api.github.com/users/kelfro/orgs","repos_url":"https://api.github.com/users/kelfro/repos","events_url":"https://api.github.com/users/kelfro/events{/privacy}","received_events_url":"https://api.github.com/users/kelfro/received_events","type":"User","site_admin":false},"repo":{"id":129942506,"name":"JavaScript-II","full_name":"kelfro/JavaScript-II","owner":{"login":"kelfro","id":37552307,"avatar_url":"https://avatars0.githubusercontent.com/u/37552307?v=4","gravatar_id":"","url":"https://api.github.com/users/kelfro","html_url":"https://github.com/kelfro","followers_url":"https://api.github.com/users/kelfro/followers","following_url":"https://api.github.com/users/kelfro/following{/other_user}","gists_url":"https://api.github.com/users/kelfro/gists{/gist_id}","starred_url":"https://api.github.com/users/kelfro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kelfro/subscriptions","organizations_url":"https://api.github.com/users/kelfro/orgs","repos_url":"https://api.github.com/users/kelfro/repos","events_url":"https://api.github.com/users/kelfro/events{/privacy}","received_events_url":"https://api.github.com/users/kelfro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kelfro/JavaScript-II","description":null,"fork":true,"url":"https://api.github.com/repos/kelfro/JavaScript-II","forks_url":"https://api.github.com/repos/kelfro/JavaScript-II/forks","keys_url":"https://api.github.com/repos/kelfro/JavaScript-II/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kelfro/JavaScript-II/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kelfro/JavaScript-II/teams","hooks_url":"https://api.github.com/repos/kelfro/JavaScript-II/hooks","issue_events_url":"https://api.github.com/repos/kelfro/JavaScript-II/issues/events{/number}","events_url":"https://api.github.com/repos/kelfro/JavaScript-II/events","assignees_url":"https://api.github.com/repos/kelfro/JavaScript-II/assignees{/user}","branches_url":"https://api.github.com/repos/kelfro/JavaScript-II/branches{/branch}","tags_url":"https://api.github.com/repos/kelfro/JavaScript-II/tags","blobs_url":"https://api.github.com/repos/kelfro/JavaScript-II/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kelfro/JavaScript-II/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kelfro/JavaScript-II/git/refs{/sha}","trees_url":"https://api.github.com/repos/kelfro/JavaScript-II/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kelfro/JavaScript-II/statuses/{sha}","languages_url":"https://api.github.com/repos/kelfro/JavaScript-II/languages","stargazers_url":"https://api.github.com/repos/kelfro/JavaScript-II/stargazers","contributors_url":"https://api.github.com/repos/kelfro/JavaScript-II/contributors","subscribers_url":"https://api.github.com/repos/kelfro/JavaScript-II/subscribers","subscription_url":"https://api.github.com/repos/kelfro/JavaScript-II/subscription","commits_url":"https://api.github.com/repos/kelfro/JavaScript-II/commits{/sha}","git_commits_url":"https://api.github.com/repos/kelfro/JavaScript-II/git/commits{/sha}","comments_url":"https://api.github.com/repos/kelfro/JavaScript-II/comments{/number}","issue_comment_url":"https://api.github.com/repos/kelfro/JavaScript-II/issues/comments{/number}","contents_url":"https://api.github.com/repos/kelfro/JavaScript-II/contents/{+path}","compare_url":"https://api.github.com/repos/kelfro/JavaScript-II/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kelfro/JavaScript-II/merges","archive_url":"https://api.github.com/repos/kelfro/JavaScript-II/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kelfro/JavaScript-II/downloads","issues_url":"https://api.github.com/repos/kelfro/JavaScript-II/issues{/number}","pulls_url":"https://api.github.com/repos/kelfro/JavaScript-II/pulls{/number}","milestones_url":"https://api.github.com/repos/kelfro/JavaScript-II/milestones{/number}","notifications_url":"https://api.github.com/repos/kelfro/JavaScript-II/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kelfro/JavaScript-II/labels{/name}","releases_url":"https://api.github.com/repos/kelfro/JavaScript-II/releases{/id}","deployments_url":"https://api.github.com/repos/kelfro/JavaScript-II/deployments","created_at":"2018-04-17T17:40:13Z","updated_at":"2018-04-17T22:28:26Z","pushed_at":"2018-04-17T22:28:24Z","git_url":"git://github.com/kelfro/JavaScript-II.git","ssh_url":"git@github.com:kelfro/JavaScript-II.git","clone_url":"https://github.com/kelfro/JavaScript-II.git","svn_url":"https://github.com/kelfro/JavaScript-II","homepage":null,"size":16,"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":"LambdaSchool:master","ref":"master","sha":"a1dd794d2c146e18191755691f78b8826ec4601c","user":{"login":"LambdaSchool","id":24780114,"avatar_url":"https://avatars1.githubusercontent.com/u/24780114?v=4","gravatar_id":"","url":"https://api.github.com/users/LambdaSchool","html_url":"https://github.com/LambdaSchool","followers_url":"https://api.github.com/users/LambdaSchool/followers","following_url":"https://api.github.com/users/LambdaSchool/following{/other_user}","gists_url":"https://api.github.com/users/LambdaSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/LambdaSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LambdaSchool/subscriptions","organizations_url":"https://api.github.com/users/LambdaSchool/orgs","repos_url":"https://api.github.com/users/LambdaSchool/repos","events_url":"https://api.github.com/users/LambdaSchool/events{/privacy}","received_events_url":"https://api.github.com/users/LambdaSchool/received_events","type":"Organization","site_admin":false},"repo":{"id":128838867,"name":"JavaScript-II","full_name":"LambdaSchool/JavaScript-II","owner":{"login":"LambdaSchool","id":24780114,"avatar_url":"https://avatars1.githubusercontent.com/u/24780114?v=4","gravatar_id":"","url":"https://api.github.com/users/LambdaSchool","html_url":"https://github.com/LambdaSchool","followers_url":"https://api.github.com/users/LambdaSchool/followers","following_url":"https://api.github.com/users/LambdaSchool/following{/other_user}","gists_url":"https://api.github.com/users/LambdaSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/LambdaSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LambdaSchool/subscriptions","organizations_url":"https://api.github.com/users/LambdaSchool/orgs","repos_url":"https://api.github.com/users/LambdaSchool/repos","events_url":"https://api.github.com/users/LambdaSchool/events{/privacy}","received_events_url":"https://api.github.com/users/LambdaSchool/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LambdaSchool/JavaScript-II","description":null,"fork":false,"url":"https://api.github.com/repos/LambdaSchool/JavaScript-II","forks_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/forks","keys_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/teams","hooks_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/hooks","issue_events_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/issues/events{/number}","events_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/events","assignees_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/assignees{/user}","branches_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/branches{/branch}","tags_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/tags","blobs_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/git/refs{/sha}","trees_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/statuses/{sha}","languages_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/languages","stargazers_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/stargazers","contributors_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/contributors","subscribers_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/subscribers","subscription_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/subscription","commits_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/commits{/sha}","git_commits_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/git/commits{/sha}","comments_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/comments{/number}","issue_comment_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/issues/comments{/number}","contents_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/contents/{+path}","compare_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/merges","archive_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/downloads","issues_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/issues{/number}","pulls_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/pulls{/number}","milestones_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/milestones{/number}","notifications_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/labels{/name}","releases_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/releases{/id}","deployments_url":"https://api.github.com/repos/LambdaSchool/JavaScript-II/deployments","created_at":"2018-04-09T22:01:14Z","updated_at":"2018-04-17T18:38:02Z","pushed_at":"2018-04-19T05:03:18Z","git_url":"git://github.com/LambdaSchool/JavaScript-II.git","ssh_url":"git@github.com:LambdaSchool/JavaScript-II.git","clone_url":"https://github.com/LambdaSchool/JavaScript-II.git","svn_url":"https://github.com/LambdaSchool/JavaScript-II","homepage":null,"size":9,"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":59,"mirror_url":null,"archived":false,"open_issues_count":52,"license":null,"forks":59,"open_issues":52,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LambdaSchool/JavaScript-II/pulls/17"},"html":{"href":"https://github.com/LambdaSchool/JavaScript-II/pull/17"},"issue":{"href":"https://api.github.com/repos/LambdaSchool/JavaScript-II/issues/17"},"comments":{"href":"https://api.github.com/repos/LambdaSchool/JavaScript-II/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/LambdaSchool/JavaScript-II/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/LambdaSchool/JavaScript-II/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LambdaSchool/JavaScript-II/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/LambdaSchool/JavaScript-II/statuses/807b399960b4bc3ae9d229cb299975f6fe13a36c"}},"author_association":"NONE"}}
{"actor":{"display_login":"nphillips78"}}