{"action":"created","comment":{"url":"https://api.github.com/repos/drisser/javascript-workbook/pulls/comments/228761580","pull_request_review_id":169105980,"id":228761580,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyODc2MTU4MA==","diff_hunk":"@@ -7,14 +7,33 @@ const rl = readline.createInterface({\n   output: process.stdout\n });\n \n+//CODE PLAN\n+//check if input is valid 'isWord' \n+//if falsey, return 'please enter a word'\n+//if truthy, check to see if the first letter of the word is a vowel\n+//if truthy, return the original string + 'yay'\n+//if falsey, convert string to an array 'arrWord'\n+//loop through the array comparing each letter against 5 vowels\n+//after finding the first vowel, shift the letters before it to the end of the array\n+//add 'ay' to the end of the array\n+//convert the new array back to a string\n+//return the new string\n \n-function pigLatin(word) {\n+const isWord = (word) => typeof word === 'string'; //this function checks if the user inputs a word\n \n-  // Your code here\n+const arrWord = (word) => word.split(''); //this function converts the string to an array\n \n+const pigLatin = (word) => {\n+  if (isWord(word)){\n+    if (word[0] === 'a' || word[0] === 'e' || word[0] === 'i' || word[0] === 'o' || word[0] === 'u'){","path":"02week/pigLatin.js","position":24,"original_position":24,"commit_id":"9faee22f2aeb7f4c0d77c9ba566388e6bccd457d","original_commit_id":"9faee22f2aeb7f4c0d77c9ba566388e6bccd457d","user":{"login":"reneedudley","id":12837355,"node_id":"MDQ6VXNlcjEyODM3MzU1","avatar_url":"https://avatars0.githubusercontent.com/u/12837355?v=4","gravatar_id":"","url":"https://api.github.com/users/reneedudley","html_url":"https://github.com/reneedudley","followers_url":"https://api.github.com/users/reneedudley/followers","following_url":"https://api.github.com/users/reneedudley/following{/other_user}","gists_url":"https://api.github.com/users/reneedudley/gists{/gist_id}","starred_url":"https://api.github.com/users/reneedudley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reneedudley/subscriptions","organizations_url":"https://api.github.com/users/reneedudley/orgs","repos_url":"https://api.github.com/users/reneedudley/repos","events_url":"https://api.github.com/users/reneedudley/events{/privacy}","received_events_url":"https://api.github.com/users/reneedudley/received_events","type":"User","site_admin":false},"body":"this is repetitive ","created_at":"2018-10-28T19:32:37Z","updated_at":"2018-10-28T19:33:18Z","html_url":"https://github.com/drisser/javascript-workbook/pull/3#discussion_r228761580","pull_request_url":"https://api.github.com/repos/drisser/javascript-workbook/pulls/3","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/drisser/javascript-workbook/pulls/comments/228761580"},"html":{"href":"https://github.com/drisser/javascript-workbook/pull/3#discussion_r228761580"},"pull_request":{"href":"https://api.github.com/repos/drisser/javascript-workbook/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/drisser/javascript-workbook/pulls/3","id":224577696,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0NTc3Njk2","html_url":"https://github.com/drisser/javascript-workbook/pull/3","diff_url":"https://github.com/drisser/javascript-workbook/pull/3.diff","patch_url":"https://github.com/drisser/javascript-workbook/pull/3.patch","issue_url":"https://api.github.com/repos/drisser/javascript-workbook/issues/3","number":3,"state":"open","locked":false,"title":"init push","user":{"login":"drisser","id":38961282,"node_id":"MDQ6VXNlcjM4OTYxMjgy","avatar_url":"https://avatars3.githubusercontent.com/u/38961282?v=4","gravatar_id":"","url":"https://api.github.com/users/drisser","html_url":"https://github.com/drisser","followers_url":"https://api.github.com/users/drisser/followers","following_url":"https://api.github.com/users/drisser/following{/other_user}","gists_url":"https://api.github.com/users/drisser/gists{/gist_id}","starred_url":"https://api.github.com/users/drisser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drisser/subscriptions","organizations_url":"https://api.github.com/users/drisser/orgs","repos_url":"https://api.github.com/users/drisser/repos","events_url":"https://api.github.com/users/drisser/events{/privacy}","received_events_url":"https://api.github.com/users/drisser/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":"2018-10-22T01:07:26Z","updated_at":"2018-10-28T19:33:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d8f57d5292dbc99f3d179e672f9ad9597264120d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/drisser/javascript-workbook/pulls/3/commits","review_comments_url":"https://api.github.com/repos/drisser/javascript-workbook/pulls/3/comments","review_comment_url":"https://api.github.com/repos/drisser/javascript-workbook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/drisser/javascript-workbook/issues/3/comments","statuses_url":"https://api.github.com/repos/drisser/javascript-workbook/statuses/9faee22f2aeb7f4c0d77c9ba566388e6bccd457d","head":{"label":"drisser:pig-latin","ref":"pig-latin","sha":"9faee22f2aeb7f4c0d77c9ba566388e6bccd457d","user":{"login":"drisser","id":38961282,"node_id":"MDQ6VXNlcjM4OTYxMjgy","avatar_url":"https://avatars3.githubusercontent.com/u/38961282?v=4","gravatar_id":"","url":"https://api.github.com/users/drisser","html_url":"https://github.com/drisser","followers_url":"https://api.github.com/users/drisser/followers","following_url":"https://api.github.com/users/drisser/following{/other_user}","gists_url":"https://api.github.com/users/drisser/gists{/gist_id}","starred_url":"https://api.github.com/users/drisser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drisser/subscriptions","organizations_url":"https://api.github.com/users/drisser/orgs","repos_url":"https://api.github.com/users/drisser/repos","events_url":"https://api.github.com/users/drisser/events{/privacy}","received_events_url":"https://api.github.com/users/drisser/received_events","type":"User","site_admin":false},"repo":{"id":152476054,"node_id":"MDEwOlJlcG9zaXRvcnkxNTI0NzYwNTQ=","name":"javascript-workbook","full_name":"drisser/javascript-workbook","private":false,"owner":{"login":"drisser","id":38961282,"node_id":"MDQ6VXNlcjM4OTYxMjgy","avatar_url":"https://avatars3.githubusercontent.com/u/38961282?v=4","gravatar_id":"","url":"https://api.github.com/users/drisser","html_url":"https://github.com/drisser","followers_url":"https://api.github.com/users/drisser/followers","following_url":"https://api.github.com/users/drisser/following{/other_user}","gists_url":"https://api.github.com/users/drisser/gists{/gist_id}","starred_url":"https://api.github.com/users/drisser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drisser/subscriptions","organizations_url":"https://api.github.com/users/drisser/orgs","repos_url":"https://api.github.com/users/drisser/repos","events_url":"https://api.github.com/users/drisser/events{/privacy}","received_events_url":"https://api.github.com/users/drisser/received_events","type":"User","site_admin":false},"html_url":"https://github.com/drisser/javascript-workbook","description":"https://austincodingacademy.github.io/javascript-workbook","fork":true,"url":"https://api.github.com/repos/drisser/javascript-workbook","forks_url":"https://api.github.com/repos/drisser/javascript-workbook/forks","keys_url":"https://api.github.com/repos/drisser/javascript-workbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/drisser/javascript-workbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/drisser/javascript-workbook/teams","hooks_url":"https://api.github.com/repos/drisser/javascript-workbook/hooks","issue_events_url":"https://api.github.com/repos/drisser/javascript-workbook/issues/events{/number}","events_url":"https://api.github.com/repos/drisser/javascript-workbook/events","assignees_url":"https://api.github.com/repos/drisser/javascript-workbook/assignees{/user}","branches_url":"https://api.github.com/repos/drisser/javascript-workbook/branches{/branch}","tags_url":"https://api.github.com/repos/drisser/javascript-workbook/tags","blobs_url":"https://api.github.com/repos/drisser/javascript-workbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/drisser/javascript-workbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/drisser/javascript-workbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/drisser/javascript-workbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/drisser/javascript-workbook/statuses/{sha}","languages_url":"https://api.github.com/repos/drisser/javascript-workbook/languages","stargazers_url":"https://api.github.com/repos/drisser/javascript-workbook/stargazers","contributors_url":"https://api.github.com/repos/drisser/javascript-workbook/contributors","subscribers_url":"https://api.github.com/repos/drisser/javascript-workbook/subscribers","subscription_url":"https://api.github.com/repos/drisser/javascript-workbook/subscription","commits_url":"https://api.github.com/repos/drisser/javascript-workbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/drisser/javascript-workbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/drisser/javascript-workbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/drisser/javascript-workbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/drisser/javascript-workbook/contents/{+path}","compare_url":"https://api.github.com/repos/drisser/javascript-workbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/drisser/javascript-workbook/merges","archive_url":"https://api.github.com/repos/drisser/javascript-workbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/drisser/javascript-workbook/downloads","issues_url":"https://api.github.com/repos/drisser/javascript-workbook/issues{/number}","pulls_url":"https://api.github.com/repos/drisser/javascript-workbook/pulls{/number}","milestones_url":"https://api.github.com/repos/drisser/javascript-workbook/milestones{/number}","notifications_url":"https://api.github.com/repos/drisser/javascript-workbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/drisser/javascript-workbook/labels{/name}","releases_url":"https://api.github.com/repos/drisser/javascript-workbook/releases{/id}","deployments_url":"https://api.github.com/repos/drisser/javascript-workbook/deployments","created_at":"2018-10-10T19:11:21Z","updated_at":"2018-10-26T00:17:25Z","pushed_at":"2018-10-26T03:11:11Z","git_url":"git://github.com/drisser/javascript-workbook.git","ssh_url":"git@github.com:drisser/javascript-workbook.git","clone_url":"https://github.com/drisser/javascript-workbook.git","svn_url":"https://github.com/drisser/javascript-workbook","homepage":"","size":396,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":0,"default_branch":"gh-pages"}},"base":{"label":"drisser:gh-pages","ref":"gh-pages","sha":"9fddb6b42da72bd4c317b32364ee071fcfc5be97","user":{"login":"drisser","id":38961282,"node_id":"MDQ6VXNlcjM4OTYxMjgy","avatar_url":"https://avatars3.githubusercontent.com/u/38961282?v=4","gravatar_id":"","url":"https://api.github.com/users/drisser","html_url":"https://github.com/drisser","followers_url":"https://api.github.com/users/drisser/followers","following_url":"https://api.github.com/users/drisser/following{/other_user}","gists_url":"https://api.github.com/users/drisser/gists{/gist_id}","starred_url":"https://api.github.com/users/drisser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drisser/subscriptions","organizations_url":"https://api.github.com/users/drisser/orgs","repos_url":"https://api.github.com/users/drisser/repos","events_url":"https://api.github.com/users/drisser/events{/privacy}","received_events_url":"https://api.github.com/users/drisser/received_events","type":"User","site_admin":false},"repo":{"id":152476054,"node_id":"MDEwOlJlcG9zaXRvcnkxNTI0NzYwNTQ=","name":"javascript-workbook","full_name":"drisser/javascript-workbook","private":false,"owner":{"login":"drisser","id":38961282,"node_id":"MDQ6VXNlcjM4OTYxMjgy","avatar_url":"https://avatars3.githubusercontent.com/u/38961282?v=4","gravatar_id":"","url":"https://api.github.com/users/drisser","html_url":"https://github.com/drisser","followers_url":"https://api.github.com/users/drisser/followers","following_url":"https://api.github.com/users/drisser/following{/other_user}","gists_url":"https://api.github.com/users/drisser/gists{/gist_id}","starred_url":"https://api.github.com/users/drisser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drisser/subscriptions","organizations_url":"https://api.github.com/users/drisser/orgs","repos_url":"https://api.github.com/users/drisser/repos","events_url":"https://api.github.com/users/drisser/events{/privacy}","received_events_url":"https://api.github.com/users/drisser/received_events","type":"User","site_admin":false},"html_url":"https://github.com/drisser/javascript-workbook","description":"https://austincodingacademy.github.io/javascript-workbook","fork":true,"url":"https://api.github.com/repos/drisser/javascript-workbook","forks_url":"https://api.github.com/repos/drisser/javascript-workbook/forks","keys_url":"https://api.github.com/repos/drisser/javascript-workbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/drisser/javascript-workbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/drisser/javascript-workbook/teams","hooks_url":"https://api.github.com/repos/drisser/javascript-workbook/hooks","issue_events_url":"https://api.github.com/repos/drisser/javascript-workbook/issues/events{/number}","events_url":"https://api.github.com/repos/drisser/javascript-workbook/events","assignees_url":"https://api.github.com/repos/drisser/javascript-workbook/assignees{/user}","branches_url":"https://api.github.com/repos/drisser/javascript-workbook/branches{/branch}","tags_url":"https://api.github.com/repos/drisser/javascript-workbook/tags","blobs_url":"https://api.github.com/repos/drisser/javascript-workbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/drisser/javascript-workbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/drisser/javascript-workbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/drisser/javascript-workbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/drisser/javascript-workbook/statuses/{sha}","languages_url":"https://api.github.com/repos/drisser/javascript-workbook/languages","stargazers_url":"https://api.github.com/repos/drisser/javascript-workbook/stargazers","contributors_url":"https://api.github.com/repos/drisser/javascript-workbook/contributors","subscribers_url":"https://api.github.com/repos/drisser/javascript-workbook/subscribers","subscription_url":"https://api.github.com/repos/drisser/javascript-workbook/subscription","commits_url":"https://api.github.com/repos/drisser/javascript-workbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/drisser/javascript-workbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/drisser/javascript-workbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/drisser/javascript-workbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/drisser/javascript-workbook/contents/{+path}","compare_url":"https://api.github.com/repos/drisser/javascript-workbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/drisser/javascript-workbook/merges","archive_url":"https://api.github.com/repos/drisser/javascript-workbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/drisser/javascript-workbook/downloads","issues_url":"https://api.github.com/repos/drisser/javascript-workbook/issues{/number}","pulls_url":"https://api.github.com/repos/drisser/javascript-workbook/pulls{/number}","milestones_url":"https://api.github.com/repos/drisser/javascript-workbook/milestones{/number}","notifications_url":"https://api.github.com/repos/drisser/javascript-workbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/drisser/javascript-workbook/labels{/name}","releases_url":"https://api.github.com/repos/drisser/javascript-workbook/releases{/id}","deployments_url":"https://api.github.com/repos/drisser/javascript-workbook/deployments","created_at":"2018-10-10T19:11:21Z","updated_at":"2018-10-26T00:17:25Z","pushed_at":"2018-10-26T03:11:11Z","git_url":"git://github.com/drisser/javascript-workbook.git","ssh_url":"git@github.com:drisser/javascript-workbook.git","clone_url":"https://github.com/drisser/javascript-workbook.git","svn_url":"https://github.com/drisser/javascript-workbook","homepage":"","size":396,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":0,"default_branch":"gh-pages"}},"_links":{"self":{"href":"https://api.github.com/repos/drisser/javascript-workbook/pulls/3"},"html":{"href":"https://github.com/drisser/javascript-workbook/pull/3"},"issue":{"href":"https://api.github.com/repos/drisser/javascript-workbook/issues/3"},"comments":{"href":"https://api.github.com/repos/drisser/javascript-workbook/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/drisser/javascript-workbook/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/drisser/javascript-workbook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/drisser/javascript-workbook/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/drisser/javascript-workbook/statuses/9faee22f2aeb7f4c0d77c9ba566388e6bccd457d"}},"author_association":"OWNER"}}
{"actor":{"display_login":"reneedudley"}}