{"action":"created","comment":{"url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/pulls/comments/238425716","pull_request_review_id":180524529,"id":238425716,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzODQyNTcxNg==","diff_hunk":"@@ -0,0 +1,115 @@\n+// const col = prompt('Введите цвет');\n+\n+// if (col.toLowerCase() === 'красный') {\n+// \talert('#f0000');\n+// } else if (col.toLowerCase() === 'белый') {\n+// \talert('#f62217');\n+// } else if (col.toLowerCase() === 'черный') {\n+// \talert('#f93736');\n+// } else {\n+// \talert('цвет не найден');\n+// }\n+\n+const col = prompt('Введите цвет');\n+\n+switch (col) {\n+  case 'красный':\n+    alert('#f0000');\n+    break;\n+  case 'зеленый':\n+    alert('#fy455');\n+    break;\n+  case 'синий':\n+    alert('#f97666');\n+    break;\n+  default:\n+    alert('Некорректный цвет');\n+}\n+\n+\n+let i = 0;\n+\n+while (i <= 10) {\n+  console.log(i);\n+  ++i;\n+}\n+\n+for (let j = 0; j <= 10; j++) {\n+  console.log(j);\n+}\n+\n+const year = +prompt('Введите год', '1996');\n+\n+switch (year) {\n+  case 1996:\n+    console.log('1996');\n+    break;\n+\n+  case 1997:\n+    console.log('1997');\n+    break;\n+\n+  case 1998:\n+    console.log('1998');\n+    break;\n+\n+  default:\n+    console.log('Year is undefined :(');\n+}\n+\n+const number = +prompt('What is the number?', '0'); // Ввели 1\n+\n+console.log(`${number}10`); // 110\n+\n+for (let k = 10; k >= 0; --k) {\n+  if (k % 2 === 0) {\n+    console.log(k);\n+  }\n+}\n+\n+let k = 10;\n+\n+while (k >= 0) {\n+  if (k % 2 === 0) {\n+    console.log(k);\n+  }\n+  --k;\n+}","path":"app/pages/second-homework/changes.js","position":77,"original_position":77,"commit_id":"af07d6258d133a38381fe7c0584a26cff81c858b","original_commit_id":"af07d6258d133a38381fe7c0584a26cff81c858b","user":{"login":"Knyazevich","id":24361305,"node_id":"MDQ6VXNlcjI0MzYxMzA1","avatar_url":"https://avatars3.githubusercontent.com/u/24361305?v=4","gravatar_id":"","url":"https://api.github.com/users/Knyazevich","html_url":"https://github.com/Knyazevich","followers_url":"https://api.github.com/users/Knyazevich/followers","following_url":"https://api.github.com/users/Knyazevich/following{/other_user}","gists_url":"https://api.github.com/users/Knyazevich/gists{/gist_id}","starred_url":"https://api.github.com/users/Knyazevich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Knyazevich/subscriptions","organizations_url":"https://api.github.com/users/Knyazevich/orgs","repos_url":"https://api.github.com/users/Knyazevich/repos","events_url":"https://api.github.com/users/Knyazevich/events{/privacy}","received_events_url":"https://api.github.com/users/Knyazevich/received_events","type":"User","site_admin":false},"body":"Останнє число, яке повертає цикл -- -1, краще закінчувати на нулі.","created_at":"2018-12-03T20:31:15Z","updated_at":"2018-12-03T20:33:09Z","html_url":"https://github.com/Maximumstart-basic-course/andrey-e3-005/pull/3#discussion_r238425716","pull_request_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/pulls/3","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/pulls/comments/238425716"},"html":{"href":"https://github.com/Maximumstart-basic-course/andrey-e3-005/pull/3#discussion_r238425716"},"pull_request":{"href":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/pulls/3","id":234910283,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM0OTEwMjgz","html_url":"https://github.com/Maximumstart-basic-course/andrey-e3-005/pull/3","diff_url":"https://github.com/Maximumstart-basic-course/andrey-e3-005/pull/3.diff","patch_url":"https://github.com/Maximumstart-basic-course/andrey-e3-005/pull/3.patch","issue_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/issues/3","number":3,"state":"open","locked":false,"title":"Подготовил 2-е ДЗ","user":{"login":"8safonov","id":43347343,"node_id":"MDQ6VXNlcjQzMzQ3MzQz","avatar_url":"https://avatars3.githubusercontent.com/u/43347343?v=4","gravatar_id":"","url":"https://api.github.com/users/8safonov","html_url":"https://github.com/8safonov","followers_url":"https://api.github.com/users/8safonov/followers","following_url":"https://api.github.com/users/8safonov/following{/other_user}","gists_url":"https://api.github.com/users/8safonov/gists{/gist_id}","starred_url":"https://api.github.com/users/8safonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/8safonov/subscriptions","organizations_url":"https://api.github.com/users/8safonov/orgs","repos_url":"https://api.github.com/users/8safonov/repos","events_url":"https://api.github.com/users/8safonov/events{/privacy}","received_events_url":"https://api.github.com/users/8safonov/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-30T08:40:14Z","updated_at":"2018-12-03T20:33:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"664bd8eb30c92697e09ef777f4388048c480258c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/pulls/3/commits","review_comments_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/pulls/3/comments","review_comment_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/issues/3/comments","statuses_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/statuses/af07d6258d133a38381fe7c0584a26cff81c858b","head":{"label":"8safonov:loops","ref":"loops","sha":"af07d6258d133a38381fe7c0584a26cff81c858b","user":{"login":"8safonov","id":43347343,"node_id":"MDQ6VXNlcjQzMzQ3MzQz","avatar_url":"https://avatars3.githubusercontent.com/u/43347343?v=4","gravatar_id":"","url":"https://api.github.com/users/8safonov","html_url":"https://github.com/8safonov","followers_url":"https://api.github.com/users/8safonov/followers","following_url":"https://api.github.com/users/8safonov/following{/other_user}","gists_url":"https://api.github.com/users/8safonov/gists{/gist_id}","starred_url":"https://api.github.com/users/8safonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/8safonov/subscriptions","organizations_url":"https://api.github.com/users/8safonov/orgs","repos_url":"https://api.github.com/users/8safonov/repos","events_url":"https://api.github.com/users/8safonov/events{/privacy}","received_events_url":"https://api.github.com/users/8safonov/received_events","type":"User","site_admin":false},"repo":{"id":158565126,"node_id":"MDEwOlJlcG9zaXRvcnkxNTg1NjUxMjY=","name":"andrey-e3-005","full_name":"8safonov/andrey-e3-005","private":false,"owner":{"login":"8safonov","id":43347343,"node_id":"MDQ6VXNlcjQzMzQ3MzQz","avatar_url":"https://avatars3.githubusercontent.com/u/43347343?v=4","gravatar_id":"","url":"https://api.github.com/users/8safonov","html_url":"https://github.com/8safonov","followers_url":"https://api.github.com/users/8safonov/followers","following_url":"https://api.github.com/users/8safonov/following{/other_user}","gists_url":"https://api.github.com/users/8safonov/gists{/gist_id}","starred_url":"https://api.github.com/users/8safonov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/8safonov/subscriptions","organizations_url":"https://api.github.com/users/8safonov/orgs","repos_url":"https://api.github.com/users/8safonov/repos","events_url":"https://api.github.com/users/8safonov/events{/privacy}","received_events_url":"https://api.github.com/users/8safonov/received_events","type":"User","site_admin":false},"html_url":"https://github.com/8safonov/andrey-e3-005","description":null,"fork":true,"url":"https://api.github.com/repos/8safonov/andrey-e3-005","forks_url":"https://api.github.com/repos/8safonov/andrey-e3-005/forks","keys_url":"https://api.github.com/repos/8safonov/andrey-e3-005/keys{/key_id}","collaborators_url":"https://api.github.com/repos/8safonov/andrey-e3-005/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/8safonov/andrey-e3-005/teams","hooks_url":"https://api.github.com/repos/8safonov/andrey-e3-005/hooks","issue_events_url":"https://api.github.com/repos/8safonov/andrey-e3-005/issues/events{/number}","events_url":"https://api.github.com/repos/8safonov/andrey-e3-005/events","assignees_url":"https://api.github.com/repos/8safonov/andrey-e3-005/assignees{/user}","branches_url":"https://api.github.com/repos/8safonov/andrey-e3-005/branches{/branch}","tags_url":"https://api.github.com/repos/8safonov/andrey-e3-005/tags","blobs_url":"https://api.github.com/repos/8safonov/andrey-e3-005/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/8safonov/andrey-e3-005/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/8safonov/andrey-e3-005/git/refs{/sha}","trees_url":"https://api.github.com/repos/8safonov/andrey-e3-005/git/trees{/sha}","statuses_url":"https://api.github.com/repos/8safonov/andrey-e3-005/statuses/{sha}","languages_url":"https://api.github.com/repos/8safonov/andrey-e3-005/languages","stargazers_url":"https://api.github.com/repos/8safonov/andrey-e3-005/stargazers","contributors_url":"https://api.github.com/repos/8safonov/andrey-e3-005/contributors","subscribers_url":"https://api.github.com/repos/8safonov/andrey-e3-005/subscribers","subscription_url":"https://api.github.com/repos/8safonov/andrey-e3-005/subscription","commits_url":"https://api.github.com/repos/8safonov/andrey-e3-005/commits{/sha}","git_commits_url":"https://api.github.com/repos/8safonov/andrey-e3-005/git/commits{/sha}","comments_url":"https://api.github.com/repos/8safonov/andrey-e3-005/comments{/number}","issue_comment_url":"https://api.github.com/repos/8safonov/andrey-e3-005/issues/comments{/number}","contents_url":"https://api.github.com/repos/8safonov/andrey-e3-005/contents/{+path}","compare_url":"https://api.github.com/repos/8safonov/andrey-e3-005/compare/{base}...{head}","merges_url":"https://api.github.com/repos/8safonov/andrey-e3-005/merges","archive_url":"https://api.github.com/repos/8safonov/andrey-e3-005/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/8safonov/andrey-e3-005/downloads","issues_url":"https://api.github.com/repos/8safonov/andrey-e3-005/issues{/number}","pulls_url":"https://api.github.com/repos/8safonov/andrey-e3-005/pulls{/number}","milestones_url":"https://api.github.com/repos/8safonov/andrey-e3-005/milestones{/number}","notifications_url":"https://api.github.com/repos/8safonov/andrey-e3-005/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/8safonov/andrey-e3-005/labels{/name}","releases_url":"https://api.github.com/repos/8safonov/andrey-e3-005/releases{/id}","deployments_url":"https://api.github.com/repos/8safonov/andrey-e3-005/deployments","created_at":"2018-11-21T15:02:01Z","updated_at":"2018-11-21T15:02:04Z","pushed_at":"2018-11-30T10:01:42Z","git_url":"git://github.com/8safonov/andrey-e3-005.git","ssh_url":"git@github.com:8safonov/andrey-e3-005.git","clone_url":"https://github.com/8safonov/andrey-e3-005.git","svn_url":"https://github.com/8safonov/andrey-e3-005","homepage":null,"size":49,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"Maximumstart-basic-course:master","ref":"master","sha":"b379362fc2850d18d8c461dbe791589ef63e8011","user":{"login":"Maximumstart-basic-course","id":35936857,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1OTM2ODU3","avatar_url":"https://avatars2.githubusercontent.com/u/35936857?v=4","gravatar_id":"","url":"https://api.github.com/users/Maximumstart-basic-course","html_url":"https://github.com/Maximumstart-basic-course","followers_url":"https://api.github.com/users/Maximumstart-basic-course/followers","following_url":"https://api.github.com/users/Maximumstart-basic-course/following{/other_user}","gists_url":"https://api.github.com/users/Maximumstart-basic-course/gists{/gist_id}","starred_url":"https://api.github.com/users/Maximumstart-basic-course/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maximumstart-basic-course/subscriptions","organizations_url":"https://api.github.com/users/Maximumstart-basic-course/orgs","repos_url":"https://api.github.com/users/Maximumstart-basic-course/repos","events_url":"https://api.github.com/users/Maximumstart-basic-course/events{/privacy}","received_events_url":"https://api.github.com/users/Maximumstart-basic-course/received_events","type":"Organization","site_admin":false},"repo":{"id":158564471,"node_id":"MDEwOlJlcG9zaXRvcnkxNTg1NjQ0NzE=","name":"andrey-e3-005","full_name":"Maximumstart-basic-course/andrey-e3-005","private":false,"owner":{"login":"Maximumstart-basic-course","id":35936857,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM1OTM2ODU3","avatar_url":"https://avatars2.githubusercontent.com/u/35936857?v=4","gravatar_id":"","url":"https://api.github.com/users/Maximumstart-basic-course","html_url":"https://github.com/Maximumstart-basic-course","followers_url":"https://api.github.com/users/Maximumstart-basic-course/followers","following_url":"https://api.github.com/users/Maximumstart-basic-course/following{/other_user}","gists_url":"https://api.github.com/users/Maximumstart-basic-course/gists{/gist_id}","starred_url":"https://api.github.com/users/Maximumstart-basic-course/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Maximumstart-basic-course/subscriptions","organizations_url":"https://api.github.com/users/Maximumstart-basic-course/orgs","repos_url":"https://api.github.com/users/Maximumstart-basic-course/repos","events_url":"https://api.github.com/users/Maximumstart-basic-course/events{/privacy}","received_events_url":"https://api.github.com/users/Maximumstart-basic-course/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Maximumstart-basic-course/andrey-e3-005","description":null,"fork":false,"url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005","forks_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/forks","keys_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/teams","hooks_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/hooks","issue_events_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/issues/events{/number}","events_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/events","assignees_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/assignees{/user}","branches_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/branches{/branch}","tags_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/tags","blobs_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/git/refs{/sha}","trees_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/statuses/{sha}","languages_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/languages","stargazers_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/stargazers","contributors_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/contributors","subscribers_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/subscribers","subscription_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/subscription","commits_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/commits{/sha}","git_commits_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/git/commits{/sha}","comments_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/comments{/number}","issue_comment_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/issues/comments{/number}","contents_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/contents/{+path}","compare_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/merges","archive_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/downloads","issues_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/issues{/number}","pulls_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/pulls{/number}","milestones_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/milestones{/number}","notifications_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/labels{/name}","releases_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/releases{/id}","deployments_url":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/deployments","created_at":"2018-11-21T14:57:26Z","updated_at":"2018-11-29T20:55:31Z","pushed_at":"2018-11-30T10:01:43Z","git_url":"git://github.com/Maximumstart-basic-course/andrey-e3-005.git","ssh_url":"git@github.com:Maximumstart-basic-course/andrey-e3-005.git","clone_url":"https://github.com/Maximumstart-basic-course/andrey-e3-005.git","svn_url":"https://github.com/Maximumstart-basic-course/andrey-e3-005","homepage":null,"size":46,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/pulls/3"},"html":{"href":"https://github.com/Maximumstart-basic-course/andrey-e3-005/pull/3"},"issue":{"href":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/issues/3"},"comments":{"href":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/Maximumstart-basic-course/andrey-e3-005/statuses/af07d6258d133a38381fe7c0584a26cff81c858b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Knyazevich"}}