{"action":"created","comment":{"url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/pulls/comments/133625033","pull_request_review_id":56826745,"id":133625033,"diff_hunk":"@@ -9,10 +9,19 @@ const rl = readline.createInterface({\n \n \n function pigLatin(word) {\n-\n-  // Your code here\n-\n-}\n+  let inputArray = word.split('');\n+  let vowelArray = ['a','e','i','o','u'];\n+  for(let i =0; i<inputArray.length;i++){\n+    const letter = inputArray[i];\n+    if(vowelArray.indexOf(letter)!== -1){\n+      const cutPiece = inputArray.slice(0,i)\n+      const remainingArr = inputArray.slice(i)\n+      const theEnd = remainingArr.concat(cutPiece);\n+      console.log(theEnd.join('') + 'ay');\n+          break;","path":"02week/pigLatin.js","position":17,"original_position":17,"commit_id":"0cc83441dec0f8f823c3cb95d9b57029b2018bc3","original_commit_id":"0cc83441dec0f8f823c3cb95d9b57029b2018bc3","user":{"login":"ASTPMeetup","id":15767173,"avatar_url":"https://avatars3.githubusercontent.com/u/15767173?v=4","gravatar_id":"","url":"https://api.github.com/users/ASTPMeetup","html_url":"https://github.com/ASTPMeetup","followers_url":"https://api.github.com/users/ASTPMeetup/followers","following_url":"https://api.github.com/users/ASTPMeetup/following{/other_user}","gists_url":"https://api.github.com/users/ASTPMeetup/gists{/gist_id}","starred_url":"https://api.github.com/users/ASTPMeetup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ASTPMeetup/subscriptions","organizations_url":"https://api.github.com/users/ASTPMeetup/orgs","repos_url":"https://api.github.com/users/ASTPMeetup/repos","events_url":"https://api.github.com/users/ASTPMeetup/events{/privacy}","received_events_url":"https://api.github.com/users/ASTPMeetup/received_events","type":"User","site_admin":false},"body":"Your app does not address instances when the first letter is a vowel.","created_at":"2017-08-17T05:18:24Z","updated_at":"2017-08-17T05:18:35Z","html_url":"https://github.com/Ch4s3B0t/javascript-workbook/pull/7#discussion_r133625033","pull_request_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/pulls/comments/133625033"},"html":{"href":"https://github.com/Ch4s3B0t/javascript-workbook/pull/7#discussion_r133625033"},"pull_request":{"href":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/pulls/7","id":135866136,"html_url":"https://github.com/Ch4s3B0t/javascript-workbook/pull/7","diff_url":"https://github.com/Ch4s3B0t/javascript-workbook/pull/7.diff","patch_url":"https://github.com/Ch4s3B0t/javascript-workbook/pull/7.patch","issue_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/issues/7","number":7,"state":"open","locked":false,"title":"Pig latin finished. Accidentally coded in the spacetraveltomars branch but pasted it back into this branch. Worked flawlessly in the spacetraveltomars branch but now I get an undefined after the phrase prints out. Still works but I can't figure out why it does this only in the pigLatin branch","user":{"login":"Ch4s3B0t","id":27564250,"avatar_url":"https://avatars2.githubusercontent.com/u/27564250?v=4","gravatar_id":"","url":"https://api.github.com/users/Ch4s3B0t","html_url":"https://github.com/Ch4s3B0t","followers_url":"https://api.github.com/users/Ch4s3B0t/followers","following_url":"https://api.github.com/users/Ch4s3B0t/following{/other_user}","gists_url":"https://api.github.com/users/Ch4s3B0t/gists{/gist_id}","starred_url":"https://api.github.com/users/Ch4s3B0t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ch4s3B0t/subscriptions","organizations_url":"https://api.github.com/users/Ch4s3B0t/orgs","repos_url":"https://api.github.com/users/Ch4s3B0t/repos","events_url":"https://api.github.com/users/Ch4s3B0t/events{/privacy}","received_events_url":"https://api.github.com/users/Ch4s3B0t/received_events","type":"User","site_admin":false},"body":"## Checkpoint Rubric\r\nThis is the rubric that your instructor will use to grade your checkpoints. Please do not edit. \r\n\r\n**Checkpoint 1**\r\n- [ ] All tests passed: 40 points\r\n- [ ] Proper use of documentation (commenting on code): 15 points\r\n- [ ] Properly indented code: 15 points\r\n- [ ] Demonstrated effective use of JavaScript: 30 points\r\n\r\n**Checkpoint 2**\r\n- [ ] The application works as it should: 40 points\r\n- [ ] Proper use of documentation (commenting on code): 15 points\r\n- [ ] Properly indented code: 15 points\r\n- [ ] Demonstrated effective use of JavaScript and the DOM API: 30 points\r\n\r\n**Checkpoint 3**\r\n- [ ] Use of React: 25 points\r\n- [ ] Accesses an API: 25 points\r\n- [ ] Proper use of documentation (commenting on code): 25 points\r\n- [ ] The application functions as it should: 25 points\r\n","created_at":"2017-08-15T18:52:08Z","updated_at":"2017-08-17T05:18:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3fa9f3e1662d0f614a8831144987a4b526329dbb","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/pulls/7/commits","review_comments_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/pulls/7/comments","review_comment_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/issues/7/comments","statuses_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/statuses/0cc83441dec0f8f823c3cb95d9b57029b2018bc3","head":{"label":"Ch4s3B0t:pigLatin","ref":"pigLatin","sha":"0cc83441dec0f8f823c3cb95d9b57029b2018bc3","user":{"login":"Ch4s3B0t","id":27564250,"avatar_url":"https://avatars2.githubusercontent.com/u/27564250?v=4","gravatar_id":"","url":"https://api.github.com/users/Ch4s3B0t","html_url":"https://github.com/Ch4s3B0t","followers_url":"https://api.github.com/users/Ch4s3B0t/followers","following_url":"https://api.github.com/users/Ch4s3B0t/following{/other_user}","gists_url":"https://api.github.com/users/Ch4s3B0t/gists{/gist_id}","starred_url":"https://api.github.com/users/Ch4s3B0t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ch4s3B0t/subscriptions","organizations_url":"https://api.github.com/users/Ch4s3B0t/orgs","repos_url":"https://api.github.com/users/Ch4s3B0t/repos","events_url":"https://api.github.com/users/Ch4s3B0t/events{/privacy}","received_events_url":"https://api.github.com/users/Ch4s3B0t/received_events","type":"User","site_admin":false},"repo":{"id":96946564,"name":"javascript-workbook","full_name":"Ch4s3B0t/javascript-workbook","owner":{"login":"Ch4s3B0t","id":27564250,"avatar_url":"https://avatars2.githubusercontent.com/u/27564250?v=4","gravatar_id":"","url":"https://api.github.com/users/Ch4s3B0t","html_url":"https://github.com/Ch4s3B0t","followers_url":"https://api.github.com/users/Ch4s3B0t/followers","following_url":"https://api.github.com/users/Ch4s3B0t/following{/other_user}","gists_url":"https://api.github.com/users/Ch4s3B0t/gists{/gist_id}","starred_url":"https://api.github.com/users/Ch4s3B0t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ch4s3B0t/subscriptions","organizations_url":"https://api.github.com/users/Ch4s3B0t/orgs","repos_url":"https://api.github.com/users/Ch4s3B0t/repos","events_url":"https://api.github.com/users/Ch4s3B0t/events{/privacy}","received_events_url":"https://api.github.com/users/Ch4s3B0t/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ch4s3B0t/javascript-workbook","description":"https://austincodingacademy.github.io/javascript-workbook","fork":true,"url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook","forks_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/forks","keys_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/teams","hooks_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/hooks","issue_events_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/issues/events{/number}","events_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/events","assignees_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/assignees{/user}","branches_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/branches{/branch}","tags_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/tags","blobs_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/statuses/{sha}","languages_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/languages","stargazers_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/stargazers","contributors_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/contributors","subscribers_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/subscribers","subscription_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/subscription","commits_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/contents/{+path}","compare_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/merges","archive_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/downloads","issues_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/issues{/number}","pulls_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/pulls{/number}","milestones_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/milestones{/number}","notifications_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/labels{/name}","releases_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/releases{/id}","deployments_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/deployments","created_at":"2017-07-11T23:52:01Z","updated_at":"2017-07-11T23:52:02Z","pushed_at":"2017-08-15T18:52:09Z","git_url":"git://github.com/Ch4s3B0t/javascript-workbook.git","ssh_url":"git@github.com:Ch4s3B0t/javascript-workbook.git","clone_url":"https://github.com/Ch4s3B0t/javascript-workbook.git","svn_url":"https://github.com/Ch4s3B0t/javascript-workbook","homepage":"","size":322,"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,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"Ch4s3B0t:gh-pages","ref":"gh-pages","sha":"e972b51d66c1ef787fcff60cbe2f0fe684204104","user":{"login":"Ch4s3B0t","id":27564250,"avatar_url":"https://avatars2.githubusercontent.com/u/27564250?v=4","gravatar_id":"","url":"https://api.github.com/users/Ch4s3B0t","html_url":"https://github.com/Ch4s3B0t","followers_url":"https://api.github.com/users/Ch4s3B0t/followers","following_url":"https://api.github.com/users/Ch4s3B0t/following{/other_user}","gists_url":"https://api.github.com/users/Ch4s3B0t/gists{/gist_id}","starred_url":"https://api.github.com/users/Ch4s3B0t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ch4s3B0t/subscriptions","organizations_url":"https://api.github.com/users/Ch4s3B0t/orgs","repos_url":"https://api.github.com/users/Ch4s3B0t/repos","events_url":"https://api.github.com/users/Ch4s3B0t/events{/privacy}","received_events_url":"https://api.github.com/users/Ch4s3B0t/received_events","type":"User","site_admin":false},"repo":{"id":96946564,"name":"javascript-workbook","full_name":"Ch4s3B0t/javascript-workbook","owner":{"login":"Ch4s3B0t","id":27564250,"avatar_url":"https://avatars2.githubusercontent.com/u/27564250?v=4","gravatar_id":"","url":"https://api.github.com/users/Ch4s3B0t","html_url":"https://github.com/Ch4s3B0t","followers_url":"https://api.github.com/users/Ch4s3B0t/followers","following_url":"https://api.github.com/users/Ch4s3B0t/following{/other_user}","gists_url":"https://api.github.com/users/Ch4s3B0t/gists{/gist_id}","starred_url":"https://api.github.com/users/Ch4s3B0t/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ch4s3B0t/subscriptions","organizations_url":"https://api.github.com/users/Ch4s3B0t/orgs","repos_url":"https://api.github.com/users/Ch4s3B0t/repos","events_url":"https://api.github.com/users/Ch4s3B0t/events{/privacy}","received_events_url":"https://api.github.com/users/Ch4s3B0t/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ch4s3B0t/javascript-workbook","description":"https://austincodingacademy.github.io/javascript-workbook","fork":true,"url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook","forks_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/forks","keys_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/teams","hooks_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/hooks","issue_events_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/issues/events{/number}","events_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/events","assignees_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/assignees{/user}","branches_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/branches{/branch}","tags_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/tags","blobs_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/statuses/{sha}","languages_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/languages","stargazers_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/stargazers","contributors_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/contributors","subscribers_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/subscribers","subscription_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/subscription","commits_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/contents/{+path}","compare_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/merges","archive_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/downloads","issues_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/issues{/number}","pulls_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/pulls{/number}","milestones_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/milestones{/number}","notifications_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/labels{/name}","releases_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/releases{/id}","deployments_url":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/deployments","created_at":"2017-07-11T23:52:01Z","updated_at":"2017-07-11T23:52:02Z","pushed_at":"2017-08-15T18:52:09Z","git_url":"git://github.com/Ch4s3B0t/javascript-workbook.git","ssh_url":"git@github.com:Ch4s3B0t/javascript-workbook.git","clone_url":"https://github.com/Ch4s3B0t/javascript-workbook.git","svn_url":"https://github.com/Ch4s3B0t/javascript-workbook","homepage":"","size":322,"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,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/pulls/7"},"html":{"href":"https://github.com/Ch4s3B0t/javascript-workbook/pull/7"},"issue":{"href":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/issues/7"},"comments":{"href":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/Ch4s3B0t/javascript-workbook/statuses/0cc83441dec0f8f823c3cb95d9b57029b2018bc3"}}}}
{"actor":{"display_login":"ASTPMeetup"}}