{"action":"created","comment":{"url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/pulls/comments/154192536","pull_request_review_id":80319742,"id":154192536,"diff_hunk":"@@ -21,3 +21,21 @@\n */\n \n // YOUR CODE HERE\n+\n+var isPalindrome = function (word) {\n+  let arrayOfLetters = word.split(\"\");\n+  for (let i = 0; i <= arrayOfLetters.length; i++) {\n+    if(arrayOfLetters[i] === arrayOfLetters[(arrayOfLetters.length - (i + 1))]) {\n+      console.log(true);","path":"challenges/palindrome-detector.js","position":9,"original_position":9,"commit_id":"aaccdb2e4e21be36fab96ed95321763e12bf7b43","original_commit_id":"aaccdb2e4e21be36fab96ed95321763e12bf7b43","user":{"login":"mnfmnfm","id":17582709,"avatar_url":"https://avatars2.githubusercontent.com/u/17582709?v=4","gravatar_id":"","url":"https://api.github.com/users/mnfmnfm","html_url":"https://github.com/mnfmnfm","followers_url":"https://api.github.com/users/mnfmnfm/followers","following_url":"https://api.github.com/users/mnfmnfm/following{/other_user}","gists_url":"https://api.github.com/users/mnfmnfm/gists{/gist_id}","starred_url":"https://api.github.com/users/mnfmnfm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mnfmnfm/subscriptions","organizations_url":"https://api.github.com/users/mnfmnfm/orgs","repos_url":"https://api.github.com/users/mnfmnfm/repos","events_url":"https://api.github.com/users/mnfmnfm/events{/privacy}","received_events_url":"https://api.github.com/users/mnfmnfm/received_events","type":"User","site_admin":false},"body":"When we talk about functions more tomorrow & next week, we'll talk about why `console.log` is less useful here than using `return`, but it's good that you got this working!","created_at":"2017-11-30T20:31:22Z","updated_at":"2017-11-30T20:33:40Z","html_url":"https://github.com/SF-WDI-LABS/problem-set-js-basics/pull/20#discussion_r154192536","pull_request_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/pulls/20","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/pulls/comments/154192536"},"html":{"href":"https://github.com/SF-WDI-LABS/problem-set-js-basics/pull/20#discussion_r154192536"},"pull_request":{"href":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/pulls/20","id":155549773,"html_url":"https://github.com/SF-WDI-LABS/problem-set-js-basics/pull/20","diff_url":"https://github.com/SF-WDI-LABS/problem-set-js-basics/pull/20.diff","patch_url":"https://github.com/SF-WDI-LABS/problem-set-js-basics/pull/20.patch","issue_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/issues/20","number":20,"state":"open","locked":false,"title":"Kyle Easton's Homework - 11/29/17","user":{"login":"kjkeaston","id":11338755,"avatar_url":"https://avatars1.githubusercontent.com/u/11338755?v=4","gravatar_id":"","url":"https://api.github.com/users/kjkeaston","html_url":"https://github.com/kjkeaston","followers_url":"https://api.github.com/users/kjkeaston/followers","following_url":"https://api.github.com/users/kjkeaston/following{/other_user}","gists_url":"https://api.github.com/users/kjkeaston/gists{/gist_id}","starred_url":"https://api.github.com/users/kjkeaston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjkeaston/subscriptions","organizations_url":"https://api.github.com/users/kjkeaston/orgs","repos_url":"https://api.github.com/users/kjkeaston/repos","events_url":"https://api.github.com/users/kjkeaston/events{/privacy}","received_events_url":"https://api.github.com/users/kjkeaston/received_events","type":"User","site_admin":false},"body":"Comfort: 3/5\r\nCompletness: 4/4\r\n\r\nDidn't really do anything on the beer bottle one as I got that working last time.\r\n\r\nThe prime one wasn't too bad to print the array, but it was printing lots of arrays building up to my max number adding an new array element each time. It took me a little bit to realize I should just move where my console.log was to only print the \"last\" array.\r\n\r\nHad trouble with the palindrome. I got it to correctly mark true or false, but it seems like it is marking true or false multiple times based on each letter evaluation instead of just once for the whole word vs word. it is also giving a true with each false but trues come back alone\r\n\r\nI feel pretty good about the insult generate. Had to look up the math.random as I didn't know how to select something random from an array. I like the way mine looks, but needed an HTML and CSS page to get what I wanted. The thing I spent the most time on was figuring out my prompt for how many insults was storing a string value and not a number. I spent forever re-writing code and just running one thing at a time and console.logging it all to see what each thing was coming back as. Once I just changed my === 1 to === '1' it worked how I wanted. In hindsight, I should have just done the typeof. Literally just thought of that....would have save some time.lol. ","created_at":"2017-11-30T08:54:38Z","updated_at":"2017-11-30T20:33:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d3f2ac8f78d79f96f6d24b23cc3ca43a5cc071cc","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/pulls/20/commits","review_comments_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/pulls/20/comments","review_comment_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/issues/20/comments","statuses_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/statuses/aaccdb2e4e21be36fab96ed95321763e12bf7b43","head":{"label":"kjkeaston:master","ref":"master","sha":"aaccdb2e4e21be36fab96ed95321763e12bf7b43","user":{"login":"kjkeaston","id":11338755,"avatar_url":"https://avatars1.githubusercontent.com/u/11338755?v=4","gravatar_id":"","url":"https://api.github.com/users/kjkeaston","html_url":"https://github.com/kjkeaston","followers_url":"https://api.github.com/users/kjkeaston/followers","following_url":"https://api.github.com/users/kjkeaston/following{/other_user}","gists_url":"https://api.github.com/users/kjkeaston/gists{/gist_id}","starred_url":"https://api.github.com/users/kjkeaston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjkeaston/subscriptions","organizations_url":"https://api.github.com/users/kjkeaston/orgs","repos_url":"https://api.github.com/users/kjkeaston/repos","events_url":"https://api.github.com/users/kjkeaston/events{/privacy}","received_events_url":"https://api.github.com/users/kjkeaston/received_events","type":"User","site_admin":false},"repo":{"id":112543803,"name":"problem-set-js-basics","full_name":"kjkeaston/problem-set-js-basics","owner":{"login":"kjkeaston","id":11338755,"avatar_url":"https://avatars1.githubusercontent.com/u/11338755?v=4","gravatar_id":"","url":"https://api.github.com/users/kjkeaston","html_url":"https://github.com/kjkeaston","followers_url":"https://api.github.com/users/kjkeaston/followers","following_url":"https://api.github.com/users/kjkeaston/following{/other_user}","gists_url":"https://api.github.com/users/kjkeaston/gists{/gist_id}","starred_url":"https://api.github.com/users/kjkeaston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjkeaston/subscriptions","organizations_url":"https://api.github.com/users/kjkeaston/orgs","repos_url":"https://api.github.com/users/kjkeaston/repos","events_url":"https://api.github.com/users/kjkeaston/events{/privacy}","received_events_url":"https://api.github.com/users/kjkeaston/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kjkeaston/problem-set-js-basics","description":"Javascript Basics Problem Set","fork":true,"url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics","forks_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/forks","keys_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/teams","hooks_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/hooks","issue_events_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/issues/events{/number}","events_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/events","assignees_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/assignees{/user}","branches_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/branches{/branch}","tags_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/tags","blobs_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/git/refs{/sha}","trees_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/statuses/{sha}","languages_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/languages","stargazers_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/stargazers","contributors_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/contributors","subscribers_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/subscribers","subscription_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/subscription","commits_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/commits{/sha}","git_commits_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/git/commits{/sha}","comments_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/comments{/number}","issue_comment_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/issues/comments{/number}","contents_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/contents/{+path}","compare_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/merges","archive_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/downloads","issues_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/issues{/number}","pulls_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/pulls{/number}","milestones_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/milestones{/number}","notifications_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/labels{/name}","releases_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/releases{/id}","deployments_url":"https://api.github.com/repos/kjkeaston/problem-set-js-basics/deployments","created_at":"2017-11-30T00:29:30Z","updated_at":"2017-11-30T00:29:31Z","pushed_at":"2017-11-30T08:40:51Z","git_url":"git://github.com/kjkeaston/problem-set-js-basics.git","ssh_url":"git@github.com:kjkeaston/problem-set-js-basics.git","clone_url":"https://github.com/kjkeaston/problem-set-js-basics.git","svn_url":"https://github.com/kjkeaston/problem-set-js-basics","homepage":null,"size":12,"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":"SF-WDI-LABS:master","ref":"master","sha":"da4b73ef379a8839e60f0cd39528f09481ca77a8","user":{"login":"SF-WDI-LABS","id":13909924,"avatar_url":"https://avatars3.githubusercontent.com/u/13909924?v=4","gravatar_id":"","url":"https://api.github.com/users/SF-WDI-LABS","html_url":"https://github.com/SF-WDI-LABS","followers_url":"https://api.github.com/users/SF-WDI-LABS/followers","following_url":"https://api.github.com/users/SF-WDI-LABS/following{/other_user}","gists_url":"https://api.github.com/users/SF-WDI-LABS/gists{/gist_id}","starred_url":"https://api.github.com/users/SF-WDI-LABS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SF-WDI-LABS/subscriptions","organizations_url":"https://api.github.com/users/SF-WDI-LABS/orgs","repos_url":"https://api.github.com/users/SF-WDI-LABS/repos","events_url":"https://api.github.com/users/SF-WDI-LABS/events{/privacy}","received_events_url":"https://api.github.com/users/SF-WDI-LABS/received_events","type":"Organization","site_admin":false},"repo":{"id":72031025,"name":"problem-set-js-basics","full_name":"SF-WDI-LABS/problem-set-js-basics","owner":{"login":"SF-WDI-LABS","id":13909924,"avatar_url":"https://avatars3.githubusercontent.com/u/13909924?v=4","gravatar_id":"","url":"https://api.github.com/users/SF-WDI-LABS","html_url":"https://github.com/SF-WDI-LABS","followers_url":"https://api.github.com/users/SF-WDI-LABS/followers","following_url":"https://api.github.com/users/SF-WDI-LABS/following{/other_user}","gists_url":"https://api.github.com/users/SF-WDI-LABS/gists{/gist_id}","starred_url":"https://api.github.com/users/SF-WDI-LABS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SF-WDI-LABS/subscriptions","organizations_url":"https://api.github.com/users/SF-WDI-LABS/orgs","repos_url":"https://api.github.com/users/SF-WDI-LABS/repos","events_url":"https://api.github.com/users/SF-WDI-LABS/events{/privacy}","received_events_url":"https://api.github.com/users/SF-WDI-LABS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SF-WDI-LABS/problem-set-js-basics","description":"Javascript Basics Problem Set","fork":true,"url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics","forks_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/forks","keys_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/teams","hooks_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/hooks","issue_events_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/issues/events{/number}","events_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/events","assignees_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/assignees{/user}","branches_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/branches{/branch}","tags_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/tags","blobs_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/git/refs{/sha}","trees_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/statuses/{sha}","languages_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/languages","stargazers_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/stargazers","contributors_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/contributors","subscribers_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/subscribers","subscription_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/subscription","commits_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/commits{/sha}","git_commits_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/git/commits{/sha}","comments_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/comments{/number}","issue_comment_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/issues/comments{/number}","contents_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/contents/{+path}","compare_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/merges","archive_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/downloads","issues_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/issues{/number}","pulls_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/pulls{/number}","milestones_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/milestones{/number}","notifications_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/labels{/name}","releases_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/releases{/id}","deployments_url":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/deployments","created_at":"2016-10-26T18:11:58Z","updated_at":"2017-01-26T23:24:58Z","pushed_at":"2017-11-30T17:32:49Z","git_url":"git://github.com/SF-WDI-LABS/problem-set-js-basics.git","ssh_url":"git@github.com:SF-WDI-LABS/problem-set-js-basics.git","clone_url":"https://github.com/SF-WDI-LABS/problem-set-js-basics.git","svn_url":"https://github.com/SF-WDI-LABS/problem-set-js-basics","homepage":null,"size":465,"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":24,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":24,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/pulls/20"},"html":{"href":"https://github.com/SF-WDI-LABS/problem-set-js-basics/pull/20"},"issue":{"href":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/issues/20"},"comments":{"href":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/SF-WDI-LABS/problem-set-js-basics/statuses/aaccdb2e4e21be36fab96ed95321763e12bf7b43"}},"author_association":"NONE"}}
{"actor":{"display_login":"mnfmnfm"}}