{"action":"created","comment":{"url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/pulls/comments/195963883","pull_request_review_id":129426192,"id":195963883,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NTk2Mzg4Mw==","diff_hunk":"@@ -0,0 +1,126 @@\n+console.log('JS is working'); \n+\n+\n+///////////////// HOMEWORK ////////////////////\n+\n+// 1. // \n+// Function parameters are the names listed in the function's definition. // \n+\n+// 2. // \n+// Function arguments are the real values passed to the function. // \n+\n+// 3. // \n+// Console.log will display the parameter in the console. // \n+// Return statement will stop executing the function and return the specified value. // \n+\n+////////////// COMMIT 001 ///////////\n+\n+\n+//// PALINDROME //// \n+\n+// Write a function checkPalindrome that accepts a single argument, a string.\n+\n+// The function should return true (Boolean) if the string is a palindrome, false if it is not.\n+\n+// Make sure your function will give the correct answer for words with capital letters.\n+\n+// const checkPalindrome = (cut) => {\n+//   const lowerCase = cut.toLowerCase(); \n+//   console.log(lowerCase);\n+//   const splitString = lowerCase.split('');\n+//   console.log(splitString);\n+//   const arr1 = splitString.reverse();\n+//   console.log(arr1);\n+//   const reversedString = arr1.join(\"\");\n+//   console.log(reversedString);\n+\n+//   if (cut === reversedString){\n+    \n+//     return true;\n+  \n+//   } else {\n+    \n+//     return false;\n+//   }\n+\n+\n+// }\n+\n+// console.log(checkPalindrome(\"radar\"));\n+\n+\n+//// DIGITAL SUM ////\n+\n+// Write a function 'sumDigits' that accepts a number and returns the sum of its digits. // \n+\n+// const sumDigits = (num) => {\n+\n+//     const digits = num.toString();\n+//     const stringArray = digits.split(\"\");\n+//     const integerArray = parseInt(stringArray);\n+//     console.log(integerArray);\n+//     for (let i = 0; i <= integerArray.length; i++){\n+\n+//     }\n+//     console.log(integerArray);\n+//     // console.log(stringArray); \n+// };\n+\n+\n+\n+// sumDigits(65);\n+\n+\n+","path":"homework_6_14_2018/homework_06_14_2018/js/solutions.js","position":74,"original_position":74,"commit_id":"661e9b129f3dd883a19c5f61d65a9618f41c356d","original_commit_id":"661e9b129f3dd883a19c5f61d65a9618f41c356d","user":{"login":"reubenayres","id":15374784,"node_id":"MDQ6VXNlcjE1Mzc0Nzg0","avatar_url":"https://avatars2.githubusercontent.com/u/15374784?v=4","gravatar_id":"","url":"https://api.github.com/users/reubenayres","html_url":"https://github.com/reubenayres","followers_url":"https://api.github.com/users/reubenayres/followers","following_url":"https://api.github.com/users/reubenayres/following{/other_user}","gists_url":"https://api.github.com/users/reubenayres/gists{/gist_id}","starred_url":"https://api.github.com/users/reubenayres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reubenayres/subscriptions","organizations_url":"https://api.github.com/users/reubenayres/orgs","repos_url":"https://api.github.com/users/reubenayres/repos","events_url":"https://api.github.com/users/reubenayres/events{/privacy}","received_events_url":"https://api.github.com/users/reubenayres/received_events","type":"User","site_admin":false},"body":"please submit an attempt at `sumArray` — see me monday if you'd like help with this or pythagoras","created_at":"2018-06-18T04:43:30Z","updated_at":"2018-06-18T04:43:30Z","html_url":"https://github.com/reubenayres/wdi-12-hw3-functions-scope/pull/6#discussion_r195963883","pull_request_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/pulls/6","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/pulls/comments/195963883"},"html":{"href":"https://github.com/reubenayres/wdi-12-hw3-functions-scope/pull/6#discussion_r195963883"},"pull_request":{"href":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/pulls/6","id":195271686,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1MjcxNjg2","html_url":"https://github.com/reubenayres/wdi-12-hw3-functions-scope/pull/6","diff_url":"https://github.com/reubenayres/wdi-12-hw3-functions-scope/pull/6.diff","patch_url":"https://github.com/reubenayres/wdi-12-hw3-functions-scope/pull/6.patch","issue_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/issues/6","number":6,"state":"open","locked":false,"title":"Homework 06_14_2018-Alex Delgado","user":{"login":"alxdelgado","id":39785591,"node_id":"MDQ6VXNlcjM5Nzg1NTkx","avatar_url":"https://avatars3.githubusercontent.com/u/39785591?v=4","gravatar_id":"","url":"https://api.github.com/users/alxdelgado","html_url":"https://github.com/alxdelgado","followers_url":"https://api.github.com/users/alxdelgado/followers","following_url":"https://api.github.com/users/alxdelgado/following{/other_user}","gists_url":"https://api.github.com/users/alxdelgado/gists{/gist_id}","starred_url":"https://api.github.com/users/alxdelgado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxdelgado/subscriptions","organizations_url":"https://api.github.com/users/alxdelgado/orgs","repos_url":"https://api.github.com/users/alxdelgado/repos","events_url":"https://api.github.com/users/alxdelgado/events{/privacy}","received_events_url":"https://api.github.com/users/alxdelgado/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-06-15T20:10:02Z","updated_at":"2018-06-18T04:43:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"39bf78889960c71e9dcdd5c279c073d1b4721c62","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/pulls/6/commits","review_comments_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/pulls/6/comments","review_comment_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/pulls/comments{/number}","comments_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/issues/6/comments","statuses_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/statuses/661e9b129f3dd883a19c5f61d65a9618f41c356d","head":{"label":"alxdelgado:master","ref":"master","sha":"661e9b129f3dd883a19c5f61d65a9618f41c356d","user":{"login":"alxdelgado","id":39785591,"node_id":"MDQ6VXNlcjM5Nzg1NTkx","avatar_url":"https://avatars3.githubusercontent.com/u/39785591?v=4","gravatar_id":"","url":"https://api.github.com/users/alxdelgado","html_url":"https://github.com/alxdelgado","followers_url":"https://api.github.com/users/alxdelgado/followers","following_url":"https://api.github.com/users/alxdelgado/following{/other_user}","gists_url":"https://api.github.com/users/alxdelgado/gists{/gist_id}","starred_url":"https://api.github.com/users/alxdelgado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxdelgado/subscriptions","organizations_url":"https://api.github.com/users/alxdelgado/orgs","repos_url":"https://api.github.com/users/alxdelgado/repos","events_url":"https://api.github.com/users/alxdelgado/events{/privacy}","received_events_url":"https://api.github.com/users/alxdelgado/received_events","type":"User","site_admin":false},"repo":{"id":137525744,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc1MjU3NDQ=","name":"wdi-12-hw3-functions-scope","full_name":"alxdelgado/wdi-12-hw3-functions-scope","owner":{"login":"alxdelgado","id":39785591,"node_id":"MDQ6VXNlcjM5Nzg1NTkx","avatar_url":"https://avatars3.githubusercontent.com/u/39785591?v=4","gravatar_id":"","url":"https://api.github.com/users/alxdelgado","html_url":"https://github.com/alxdelgado","followers_url":"https://api.github.com/users/alxdelgado/followers","following_url":"https://api.github.com/users/alxdelgado/following{/other_user}","gists_url":"https://api.github.com/users/alxdelgado/gists{/gist_id}","starred_url":"https://api.github.com/users/alxdelgado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxdelgado/subscriptions","organizations_url":"https://api.github.com/users/alxdelgado/orgs","repos_url":"https://api.github.com/users/alxdelgado/repos","events_url":"https://api.github.com/users/alxdelgado/events{/privacy}","received_events_url":"https://api.github.com/users/alxdelgado/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alxdelgado/wdi-12-hw3-functions-scope","description":null,"fork":true,"url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope","forks_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/forks","keys_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/teams","hooks_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/hooks","issue_events_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/issues/events{/number}","events_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/events","assignees_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/assignees{/user}","branches_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/branches{/branch}","tags_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/tags","blobs_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/git/refs{/sha}","trees_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/statuses/{sha}","languages_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/languages","stargazers_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/stargazers","contributors_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/contributors","subscribers_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/subscribers","subscription_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/subscription","commits_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/commits{/sha}","git_commits_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/git/commits{/sha}","comments_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/comments{/number}","issue_comment_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/issues/comments{/number}","contents_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/contents/{+path}","compare_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/merges","archive_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/downloads","issues_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/issues{/number}","pulls_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/pulls{/number}","milestones_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/milestones{/number}","notifications_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/labels{/name}","releases_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/releases{/id}","deployments_url":"https://api.github.com/repos/alxdelgado/wdi-12-hw3-functions-scope/deployments","created_at":"2018-06-15T19:43:17Z","updated_at":"2018-06-15T20:05:55Z","pushed_at":"2018-06-15T20:05:54Z","git_url":"git://github.com/alxdelgado/wdi-12-hw3-functions-scope.git","ssh_url":"git@github.com:alxdelgado/wdi-12-hw3-functions-scope.git","clone_url":"https://github.com/alxdelgado/wdi-12-hw3-functions-scope.git","svn_url":"https://github.com/alxdelgado/wdi-12-hw3-functions-scope","homepage":null,"size":7,"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":"reubenayres:master","ref":"master","sha":"6759cbe2b4c640e821dfb0701606635289f37915","user":{"login":"reubenayres","id":15374784,"node_id":"MDQ6VXNlcjE1Mzc0Nzg0","avatar_url":"https://avatars2.githubusercontent.com/u/15374784?v=4","gravatar_id":"","url":"https://api.github.com/users/reubenayres","html_url":"https://github.com/reubenayres","followers_url":"https://api.github.com/users/reubenayres/followers","following_url":"https://api.github.com/users/reubenayres/following{/other_user}","gists_url":"https://api.github.com/users/reubenayres/gists{/gist_id}","starred_url":"https://api.github.com/users/reubenayres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reubenayres/subscriptions","organizations_url":"https://api.github.com/users/reubenayres/orgs","repos_url":"https://api.github.com/users/reubenayres/repos","events_url":"https://api.github.com/users/reubenayres/events{/privacy}","received_events_url":"https://api.github.com/users/reubenayres/received_events","type":"User","site_admin":false},"repo":{"id":137524091,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc1MjQwOTE=","name":"wdi-12-hw3-functions-scope","full_name":"reubenayres/wdi-12-hw3-functions-scope","owner":{"login":"reubenayres","id":15374784,"node_id":"MDQ6VXNlcjE1Mzc0Nzg0","avatar_url":"https://avatars2.githubusercontent.com/u/15374784?v=4","gravatar_id":"","url":"https://api.github.com/users/reubenayres","html_url":"https://github.com/reubenayres","followers_url":"https://api.github.com/users/reubenayres/followers","following_url":"https://api.github.com/users/reubenayres/following{/other_user}","gists_url":"https://api.github.com/users/reubenayres/gists{/gist_id}","starred_url":"https://api.github.com/users/reubenayres/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reubenayres/subscriptions","organizations_url":"https://api.github.com/users/reubenayres/orgs","repos_url":"https://api.github.com/users/reubenayres/repos","events_url":"https://api.github.com/users/reubenayres/events{/privacy}","received_events_url":"https://api.github.com/users/reubenayres/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/reubenayres/wdi-12-hw3-functions-scope","description":null,"fork":false,"url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope","forks_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/forks","keys_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/teams","hooks_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/hooks","issue_events_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/issues/events{/number}","events_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/events","assignees_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/assignees{/user}","branches_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/branches{/branch}","tags_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/tags","blobs_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/git/refs{/sha}","trees_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/statuses/{sha}","languages_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/languages","stargazers_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/stargazers","contributors_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/contributors","subscribers_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/subscribers","subscription_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/subscription","commits_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/commits{/sha}","git_commits_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/git/commits{/sha}","comments_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/comments{/number}","issue_comment_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/issues/comments{/number}","contents_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/contents/{+path}","compare_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/merges","archive_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/downloads","issues_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/issues{/number}","pulls_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/pulls{/number}","milestones_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/milestones{/number}","notifications_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/labels{/name}","releases_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/releases{/id}","deployments_url":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/deployments","created_at":"2018-06-15T19:21:06Z","updated_at":"2018-06-15T19:27:06Z","pushed_at":"2018-06-15T20:10:03Z","git_url":"git://github.com/reubenayres/wdi-12-hw3-functions-scope.git","ssh_url":"git@github.com:reubenayres/wdi-12-hw3-functions-scope.git","clone_url":"https://github.com/reubenayres/wdi-12-hw3-functions-scope.git","svn_url":"https://github.com/reubenayres/wdi-12-hw3-functions-scope","homepage":null,"size":6,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":11,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/pulls/6"},"html":{"href":"https://github.com/reubenayres/wdi-12-hw3-functions-scope/pull/6"},"issue":{"href":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/issues/6"},"comments":{"href":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/reubenayres/wdi-12-hw3-functions-scope/statuses/661e9b129f3dd883a19c5f61d65a9618f41c356d"}},"author_association":"NONE"}}
{"actor":{"display_login":"reubenayres"}}