{"action":"created","comment":{"url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/pulls/comments/82209773","pull_request_review_id":3132456,"id":82209773,"diff_hunk":"@@ -0,0 +1,27 @@\n+\"use strict\";\n+\n+function getMessage(a, b) {\n+  if (typeof a === \"boolean\") {\n+    return a ? \"Я попал в \" + b : \"Я никуда не попал\";\n+    \n+  } else if (typeof a === \"number\") {\n+    return \"Я прыгнул на \" + a * 100 + \" сантиметров\";\n+    \n+  } else if (Array.isArray(a) && Array.isArray(b)) {\n+    var distancePath = 0;\n+    for (var i = 0; i < a.length; i++) {","path":"src/js/check.js","position":12,"original_position":12,"commit_id":"d149518e03e590aeb5db74c6360b86e13c6499f8","original_commit_id":"d149518e03e590aeb5db74c6360b86e13c6499f8","user":{"login":"healqq","id":4745481,"avatar_url":"https://avatars.githubusercontent.com/u/4745481?v=3","gravatar_id":"","url":"https://api.github.com/users/healqq","html_url":"https://github.com/healqq","followers_url":"https://api.github.com/users/healqq/followers","following_url":"https://api.github.com/users/healqq/following{/other_user}","gists_url":"https://api.github.com/users/healqq/gists{/gist_id}","starred_url":"https://api.github.com/users/healqq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/healqq/subscriptions","organizations_url":"https://api.github.com/users/healqq/orgs","repos_url":"https://api.github.com/users/healqq/repos","events_url":"https://api.github.com/users/healqq/events{/privacy}","received_events_url":"https://api.github.com/users/healqq/received_events","type":"User","site_admin":false},"body":"Писать несколько раз var для одной переменной - плохо.\r\nВ будущем на это будет ругаться jsLint, который будет выполнять проверку кодстайла.\r\n\r\nВообще всё выглядит красиво, когда переменные объявляются отдельным блоком в начале функции.","created_at":"2016-10-06T15:03:17Z","updated_at":"2016-10-06T15:04:36Z","html_url":"https://github.com/htmlacademy-javascript/106211-code-and-magick/pull/2#discussion_r82209773","pull_request_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/pulls/comments/82209773"},"html":{"href":"https://github.com/htmlacademy-javascript/106211-code-and-magick/pull/2#discussion_r82209773"},"pull_request":{"href":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/pulls/2","id":88263872,"html_url":"https://github.com/htmlacademy-javascript/106211-code-and-magick/pull/2","diff_url":"https://github.com/htmlacademy-javascript/106211-code-and-magick/pull/2.diff","patch_url":"https://github.com/htmlacademy-javascript/106211-code-and-magick/pull/2.patch","issue_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/issues/2","number":2,"state":"open","locked":false,"title":"Начинаем программировать","user":{"login":"GeorgeGUS","id":12587125,"avatar_url":"https://avatars.githubusercontent.com/u/12587125?v=3","gravatar_id":"","url":"https://api.github.com/users/GeorgeGUS","html_url":"https://github.com/GeorgeGUS","followers_url":"https://api.github.com/users/GeorgeGUS/followers","following_url":"https://api.github.com/users/GeorgeGUS/following{/other_user}","gists_url":"https://api.github.com/users/GeorgeGUS/gists{/gist_id}","starred_url":"https://api.github.com/users/GeorgeGUS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeorgeGUS/subscriptions","organizations_url":"https://api.github.com/users/GeorgeGUS/orgs","repos_url":"https://api.github.com/users/GeorgeGUS/repos","events_url":"https://api.github.com/users/GeorgeGUS/events{/privacy}","received_events_url":"https://api.github.com/users/GeorgeGUS/received_events","type":"User","site_admin":false},"body":"Создал файл check.js и написал в нём функцию getMessage.","created_at":"2016-10-06T13:41:07Z","updated_at":"2016-10-06T15:04:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"551439a0bc0d1b6661982f691a11ed42058eaa32","assignee":{"login":"healqq","id":4745481,"avatar_url":"https://avatars.githubusercontent.com/u/4745481?v=3","gravatar_id":"","url":"https://api.github.com/users/healqq","html_url":"https://github.com/healqq","followers_url":"https://api.github.com/users/healqq/followers","following_url":"https://api.github.com/users/healqq/following{/other_user}","gists_url":"https://api.github.com/users/healqq/gists{/gist_id}","starred_url":"https://api.github.com/users/healqq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/healqq/subscriptions","organizations_url":"https://api.github.com/users/healqq/orgs","repos_url":"https://api.github.com/users/healqq/repos","events_url":"https://api.github.com/users/healqq/events{/privacy}","received_events_url":"https://api.github.com/users/healqq/received_events","type":"User","site_admin":false},"assignees":[{"login":"healqq","id":4745481,"avatar_url":"https://avatars.githubusercontent.com/u/4745481?v=3","gravatar_id":"","url":"https://api.github.com/users/healqq","html_url":"https://github.com/healqq","followers_url":"https://api.github.com/users/healqq/followers","following_url":"https://api.github.com/users/healqq/following{/other_user}","gists_url":"https://api.github.com/users/healqq/gists{/gist_id}","starred_url":"https://api.github.com/users/healqq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/healqq/subscriptions","organizations_url":"https://api.github.com/users/healqq/orgs","repos_url":"https://api.github.com/users/healqq/repos","events_url":"https://api.github.com/users/healqq/events{/privacy}","received_events_url":"https://api.github.com/users/healqq/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/pulls/2/commits","review_comments_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/pulls/2/comments","review_comment_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/pulls/comments{/number}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/issues/2/comments","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/statuses/d149518e03e590aeb5db74c6360b86e13c6499f8","head":{"label":"GeorgeGUS:module1-task2","ref":"module1-task2","sha":"d149518e03e590aeb5db74c6360b86e13c6499f8","user":{"login":"GeorgeGUS","id":12587125,"avatar_url":"https://avatars.githubusercontent.com/u/12587125?v=3","gravatar_id":"","url":"https://api.github.com/users/GeorgeGUS","html_url":"https://github.com/GeorgeGUS","followers_url":"https://api.github.com/users/GeorgeGUS/followers","following_url":"https://api.github.com/users/GeorgeGUS/following{/other_user}","gists_url":"https://api.github.com/users/GeorgeGUS/gists{/gist_id}","starred_url":"https://api.github.com/users/GeorgeGUS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeorgeGUS/subscriptions","organizations_url":"https://api.github.com/users/GeorgeGUS/orgs","repos_url":"https://api.github.com/users/GeorgeGUS/repos","events_url":"https://api.github.com/users/GeorgeGUS/events{/privacy}","received_events_url":"https://api.github.com/users/GeorgeGUS/received_events","type":"User","site_admin":false},"repo":{"id":69997659,"name":"106211-code-and-magick","full_name":"GeorgeGUS/106211-code-and-magick","owner":{"login":"GeorgeGUS","id":12587125,"avatar_url":"https://avatars.githubusercontent.com/u/12587125?v=3","gravatar_id":"","url":"https://api.github.com/users/GeorgeGUS","html_url":"https://github.com/GeorgeGUS","followers_url":"https://api.github.com/users/GeorgeGUS/followers","following_url":"https://api.github.com/users/GeorgeGUS/following{/other_user}","gists_url":"https://api.github.com/users/GeorgeGUS/gists{/gist_id}","starred_url":"https://api.github.com/users/GeorgeGUS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeorgeGUS/subscriptions","organizations_url":"https://api.github.com/users/GeorgeGUS/orgs","repos_url":"https://api.github.com/users/GeorgeGUS/repos","events_url":"https://api.github.com/users/GeorgeGUS/events{/privacy}","received_events_url":"https://api.github.com/users/GeorgeGUS/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GeorgeGUS/106211-code-and-magick","description":"Георгий Гусаков","fork":true,"url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick","forks_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/forks","keys_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/teams","hooks_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/events","assignees_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/tags","blobs_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/subscription","commits_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/merges","archive_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/downloads","issues_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/GeorgeGUS/106211-code-and-magick/deployments","created_at":"2016-10-04T19:13:11Z","updated_at":"2016-10-04T19:13:13Z","pushed_at":"2016-10-06T13:32:04Z","git_url":"git://github.com/GeorgeGUS/106211-code-and-magick.git","ssh_url":"git@github.com:GeorgeGUS/106211-code-and-magick.git","clone_url":"https://github.com/GeorgeGUS/106211-code-and-magick.git","svn_url":"https://github.com/GeorgeGUS/106211-code-and-magick","homepage":null,"size":1103,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"htmlacademy-javascript:master","ref":"master","sha":"35355a7e8e9eab46d28daa00049e8003e6588c19","user":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars.githubusercontent.com/u/14179712?v=3","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-javascript","html_url":"https://github.com/htmlacademy-javascript","followers_url":"https://api.github.com/users/htmlacademy-javascript/followers","following_url":"https://api.github.com/users/htmlacademy-javascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-javascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-javascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-javascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-javascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-javascript/repos","events_url":"https://api.github.com/users/htmlacademy-javascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-javascript/received_events","type":"Organization","site_admin":false},"repo":{"id":69997448,"name":"106211-code-and-magick","full_name":"htmlacademy-javascript/106211-code-and-magick","owner":{"login":"htmlacademy-javascript","id":14179712,"avatar_url":"https://avatars.githubusercontent.com/u/14179712?v=3","gravatar_id":"","url":"https://api.github.com/users/htmlacademy-javascript","html_url":"https://github.com/htmlacademy-javascript","followers_url":"https://api.github.com/users/htmlacademy-javascript/followers","following_url":"https://api.github.com/users/htmlacademy-javascript/following{/other_user}","gists_url":"https://api.github.com/users/htmlacademy-javascript/gists{/gist_id}","starred_url":"https://api.github.com/users/htmlacademy-javascript/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htmlacademy-javascript/subscriptions","organizations_url":"https://api.github.com/users/htmlacademy-javascript/orgs","repos_url":"https://api.github.com/users/htmlacademy-javascript/repos","events_url":"https://api.github.com/users/htmlacademy-javascript/events{/privacy}","received_events_url":"https://api.github.com/users/htmlacademy-javascript/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/htmlacademy-javascript/106211-code-and-magick","description":"Георгий Гусаков","fork":false,"url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick","forks_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/forks","keys_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/keys{/key_id}","collaborators_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/teams","hooks_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/hooks","issue_events_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/issues/events{/number}","events_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/events","assignees_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/assignees{/user}","branches_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/branches{/branch}","tags_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/tags","blobs_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/git/refs{/sha}","trees_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/git/trees{/sha}","statuses_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/statuses/{sha}","languages_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/languages","stargazers_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/stargazers","contributors_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/contributors","subscribers_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/subscribers","subscription_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/subscription","commits_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/commits{/sha}","git_commits_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/git/commits{/sha}","comments_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/comments{/number}","issue_comment_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/issues/comments{/number}","contents_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/contents/{+path}","compare_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/compare/{base}...{head}","merges_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/merges","archive_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/downloads","issues_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/issues{/number}","pulls_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/pulls{/number}","milestones_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/milestones{/number}","notifications_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/labels{/name}","releases_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/releases{/id}","deployments_url":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/deployments","created_at":"2016-10-04T19:10:37Z","updated_at":"2016-10-05T21:26:39Z","pushed_at":"2016-10-06T13:41:08Z","git_url":"git://github.com/htmlacademy-javascript/106211-code-and-magick.git","ssh_url":"git@github.com:htmlacademy-javascript/106211-code-and-magick.git","clone_url":"https://github.com/htmlacademy-javascript/106211-code-and-magick.git","svn_url":"https://github.com/htmlacademy-javascript/106211-code-and-magick","homepage":"https://github.com/GeorgeGUS/106211-code-and-magick","size":1101,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/pulls/2"},"html":{"href":"https://github.com/htmlacademy-javascript/106211-code-and-magick/pull/2"},"issue":{"href":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/issues/2"},"comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/htmlacademy-javascript/106211-code-and-magick/statuses/d149518e03e590aeb5db74c6360b86e13c6499f8"}}}}
{"actor":{"display_login":"healqq"}}