{"action":"created","comment":{"url":"https://api.github.com/repos/leralins/itc_frontend/pulls/comments/174816442","pull_request_review_id":104239664,"id":174816442,"diff_hunk":"@@ -0,0 +1,122 @@\n+<html>\n+\n+<head>\n+    <title>Homework №0</title>\n+    <meta charset=\"utf-8\">\n+</head>\n+\n+<body>\n+    <script>\n+        function plus(x, y) {\n+            return x + y;\n+        }\n+        console.log(plus(1, 2));\n+\n+        function multiply(x, y) {\n+            let sum = 0\n+            for (var i = 0; i < y; i++) {\n+                sum = plus(sum, x);\n+            }\n+            return sum;\n+        }\n+        console.log(multiply(3, 10));\n+\n+        function mergeArrays(array1, array2) {\n+            return array1.concat(array2)\n+        }\n+        console.log(mergeArrays([1, 2, 3], [4, 5]))\n+\n+        const people = [{\n+                \"name\": \"Лера\",\n+                \"gender\": \"Женщина\",\n+                \"bestfilm\": \"Who Am I\"\n+            },\n+            {\n+                \"name\": \"Вася\",\n+                \"gender\": \"Мужчина\",\n+                \"bestfilm\": \"Брат 2\"\n+            },\n+            {\n+                \"name\": \"Ксюша\",\n+                \"gender\": \"Женщина\",\n+                \"bestfilm\": \"La La Land\"\n+            }\n+        ]\n+\n+        function filterFelmales(array) {\n+            let FemalesOrNot = array.filter(array => array.gender == \"Женщина\");\n+            return FemalesOrNot;\n+        }\n+        console.log(filterFelmales(people))\n+\n+        function getQuadrant(x, y) {\n+            if (x > 0 && y > 0)\n+                quadrant = \"первая четверть\";\n+            else if (x > 0 && y < 0)\n+                quadrant = \"четвертая четверь\";\n+            else if (x < 0 && y < 0)\n+                quadrant = \"третья четверть\";\n+            else if (x < 0 && y > 0)\n+                quadrant = \"вторая четверть\";\n+            else if (x == 0 && y == 0)\n+                quadrant = \"начало координат\";\n+            else if (x == 0 && y != 0)\n+                quadrant = \"точка лежит на оси Х\";\n+            else if (x != 0 && y == 0)\n+                quadrant = \"точка лежит на оси У\";\n+            return quadrant;\n+        }\n+        console.log(getQuadrant(1, 2))\n+        console.log(getQuadrant(-1, 2))\n+        console.log(getQuadrant(-2, -3))\n+        console.log(getQuadrant(4, -7))\n+        console.log(getQuadrant(0, 0))\n+\n+        function PlusAll(...args) {\n+            return args.reduce((sum, current) => sum + current)\n+        }\n+        console.log(PlusAll(1, 2, 3, 4, 5))\n+\n+        function MultiplyAll(...args) {\n+            return args.reduce((multi, current) => multi * current)\n+        }\n+        console.log(MultiplyAll(1, 2, 3, 4, 5))\n+\n+        function ObjectToQueryString(object) {\n+            let urlstr = \"\"\n+            let num = 0;\n+            for (key in object) {\n+                if (num == 0) {\n+                    urlstr = `${key}=${object[key]}`\n+                } else {\n+                    urlstr = `${urlstr}&${key}=${object[key]}`\n+                }\n+                num++\n+            }","path":"homework0/index.html","position":95,"original_position":95,"commit_id":"80ae1daa0271629a2a1dfd3beffe8ea469395444","original_commit_id":"80ae1daa0271629a2a1dfd3beffe8ea469395444","user":{"login":"mlshv","id":16861579,"avatar_url":"https://avatars2.githubusercontent.com/u/16861579?v=4","gravatar_id":"","url":"https://api.github.com/users/mlshv","html_url":"https://github.com/mlshv","followers_url":"https://api.github.com/users/mlshv/followers","following_url":"https://api.github.com/users/mlshv/following{/other_user}","gists_url":"https://api.github.com/users/mlshv/gists{/gist_id}","starred_url":"https://api.github.com/users/mlshv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlshv/subscriptions","organizations_url":"https://api.github.com/users/mlshv/orgs","repos_url":"https://api.github.com/users/mlshv/repos","events_url":"https://api.github.com/users/mlshv/events{/privacy}","received_events_url":"https://api.github.com/users/mlshv/received_events","type":"User","site_admin":false},"body":"лучше делать += и после цикла slice","created_at":"2018-03-15T15:05:58Z","updated_at":"2018-03-15T15:09:49Z","html_url":"https://github.com/leralins/itc_frontend/pull/1#discussion_r174816442","pull_request_url":"https://api.github.com/repos/leralins/itc_frontend/pulls/1","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/leralins/itc_frontend/pulls/comments/174816442"},"html":{"href":"https://github.com/leralins/itc_frontend/pull/1#discussion_r174816442"},"pull_request":{"href":"https://api.github.com/repos/leralins/itc_frontend/pulls/1"}},"in_reply_to_id":174815503},"pull_request":{"url":"https://api.github.com/repos/leralins/itc_frontend/pulls/1","id":175277374,"html_url":"https://github.com/leralins/itc_frontend/pull/1","diff_url":"https://github.com/leralins/itc_frontend/pull/1.diff","patch_url":"https://github.com/leralins/itc_frontend/pull/1.patch","issue_url":"https://api.github.com/repos/leralins/itc_frontend/issues/1","number":1,"state":"open","locked":false,"title":"нулёвая (как я) домашка","user":{"login":"leralins","id":32745655,"avatar_url":"https://avatars1.githubusercontent.com/u/32745655?v=4","gravatar_id":"","url":"https://api.github.com/users/leralins","html_url":"https://github.com/leralins","followers_url":"https://api.github.com/users/leralins/followers","following_url":"https://api.github.com/users/leralins/following{/other_user}","gists_url":"https://api.github.com/users/leralins/gists{/gist_id}","starred_url":"https://api.github.com/users/leralins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leralins/subscriptions","organizations_url":"https://api.github.com/users/leralins/orgs","repos_url":"https://api.github.com/users/leralins/repos","events_url":"https://api.github.com/users/leralins/events{/privacy}","received_events_url":"https://api.github.com/users/leralins/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-15T14:57:09Z","updated_at":"2018-03-15T15:09:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eb9c066a9e91eb7f2e6f37b9e451950c3531b4be","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/leralins/itc_frontend/pulls/1/commits","review_comments_url":"https://api.github.com/repos/leralins/itc_frontend/pulls/1/comments","review_comment_url":"https://api.github.com/repos/leralins/itc_frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/leralins/itc_frontend/issues/1/comments","statuses_url":"https://api.github.com/repos/leralins/itc_frontend/statuses/80ae1daa0271629a2a1dfd3beffe8ea469395444","head":{"label":"leralins:homework0","ref":"homework0","sha":"80ae1daa0271629a2a1dfd3beffe8ea469395444","user":{"login":"leralins","id":32745655,"avatar_url":"https://avatars1.githubusercontent.com/u/32745655?v=4","gravatar_id":"","url":"https://api.github.com/users/leralins","html_url":"https://github.com/leralins","followers_url":"https://api.github.com/users/leralins/followers","following_url":"https://api.github.com/users/leralins/following{/other_user}","gists_url":"https://api.github.com/users/leralins/gists{/gist_id}","starred_url":"https://api.github.com/users/leralins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leralins/subscriptions","organizations_url":"https://api.github.com/users/leralins/orgs","repos_url":"https://api.github.com/users/leralins/repos","events_url":"https://api.github.com/users/leralins/events{/privacy}","received_events_url":"https://api.github.com/users/leralins/received_events","type":"User","site_admin":false},"repo":{"id":125366932,"name":"itc_frontend","full_name":"leralins/itc_frontend","owner":{"login":"leralins","id":32745655,"avatar_url":"https://avatars1.githubusercontent.com/u/32745655?v=4","gravatar_id":"","url":"https://api.github.com/users/leralins","html_url":"https://github.com/leralins","followers_url":"https://api.github.com/users/leralins/followers","following_url":"https://api.github.com/users/leralins/following{/other_user}","gists_url":"https://api.github.com/users/leralins/gists{/gist_id}","starred_url":"https://api.github.com/users/leralins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leralins/subscriptions","organizations_url":"https://api.github.com/users/leralins/orgs","repos_url":"https://api.github.com/users/leralins/repos","events_url":"https://api.github.com/users/leralins/events{/privacy}","received_events_url":"https://api.github.com/users/leralins/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/leralins/itc_frontend","description":null,"fork":false,"url":"https://api.github.com/repos/leralins/itc_frontend","forks_url":"https://api.github.com/repos/leralins/itc_frontend/forks","keys_url":"https://api.github.com/repos/leralins/itc_frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leralins/itc_frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leralins/itc_frontend/teams","hooks_url":"https://api.github.com/repos/leralins/itc_frontend/hooks","issue_events_url":"https://api.github.com/repos/leralins/itc_frontend/issues/events{/number}","events_url":"https://api.github.com/repos/leralins/itc_frontend/events","assignees_url":"https://api.github.com/repos/leralins/itc_frontend/assignees{/user}","branches_url":"https://api.github.com/repos/leralins/itc_frontend/branches{/branch}","tags_url":"https://api.github.com/repos/leralins/itc_frontend/tags","blobs_url":"https://api.github.com/repos/leralins/itc_frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leralins/itc_frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leralins/itc_frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/leralins/itc_frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leralins/itc_frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/leralins/itc_frontend/languages","stargazers_url":"https://api.github.com/repos/leralins/itc_frontend/stargazers","contributors_url":"https://api.github.com/repos/leralins/itc_frontend/contributors","subscribers_url":"https://api.github.com/repos/leralins/itc_frontend/subscribers","subscription_url":"https://api.github.com/repos/leralins/itc_frontend/subscription","commits_url":"https://api.github.com/repos/leralins/itc_frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/leralins/itc_frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/leralins/itc_frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/leralins/itc_frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/leralins/itc_frontend/contents/{+path}","compare_url":"https://api.github.com/repos/leralins/itc_frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leralins/itc_frontend/merges","archive_url":"https://api.github.com/repos/leralins/itc_frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leralins/itc_frontend/downloads","issues_url":"https://api.github.com/repos/leralins/itc_frontend/issues{/number}","pulls_url":"https://api.github.com/repos/leralins/itc_frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/leralins/itc_frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/leralins/itc_frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leralins/itc_frontend/labels{/name}","releases_url":"https://api.github.com/repos/leralins/itc_frontend/releases{/id}","deployments_url":"https://api.github.com/repos/leralins/itc_frontend/deployments","created_at":"2018-03-15T12:52:35Z","updated_at":"2018-03-15T12:52:38Z","pushed_at":"2018-03-15T14:57:09Z","git_url":"git://github.com/leralins/itc_frontend.git","ssh_url":"git@github.com:leralins/itc_frontend.git","clone_url":"https://github.com/leralins/itc_frontend.git","svn_url":"https://github.com/leralins/itc_frontend","homepage":null,"size":1,"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":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"leralins:master","ref":"master","sha":"d995cdf4a4fe4dd0a069f3078f4cd082d766ef59","user":{"login":"leralins","id":32745655,"avatar_url":"https://avatars1.githubusercontent.com/u/32745655?v=4","gravatar_id":"","url":"https://api.github.com/users/leralins","html_url":"https://github.com/leralins","followers_url":"https://api.github.com/users/leralins/followers","following_url":"https://api.github.com/users/leralins/following{/other_user}","gists_url":"https://api.github.com/users/leralins/gists{/gist_id}","starred_url":"https://api.github.com/users/leralins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leralins/subscriptions","organizations_url":"https://api.github.com/users/leralins/orgs","repos_url":"https://api.github.com/users/leralins/repos","events_url":"https://api.github.com/users/leralins/events{/privacy}","received_events_url":"https://api.github.com/users/leralins/received_events","type":"User","site_admin":false},"repo":{"id":125366932,"name":"itc_frontend","full_name":"leralins/itc_frontend","owner":{"login":"leralins","id":32745655,"avatar_url":"https://avatars1.githubusercontent.com/u/32745655?v=4","gravatar_id":"","url":"https://api.github.com/users/leralins","html_url":"https://github.com/leralins","followers_url":"https://api.github.com/users/leralins/followers","following_url":"https://api.github.com/users/leralins/following{/other_user}","gists_url":"https://api.github.com/users/leralins/gists{/gist_id}","starred_url":"https://api.github.com/users/leralins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leralins/subscriptions","organizations_url":"https://api.github.com/users/leralins/orgs","repos_url":"https://api.github.com/users/leralins/repos","events_url":"https://api.github.com/users/leralins/events{/privacy}","received_events_url":"https://api.github.com/users/leralins/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/leralins/itc_frontend","description":null,"fork":false,"url":"https://api.github.com/repos/leralins/itc_frontend","forks_url":"https://api.github.com/repos/leralins/itc_frontend/forks","keys_url":"https://api.github.com/repos/leralins/itc_frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/leralins/itc_frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/leralins/itc_frontend/teams","hooks_url":"https://api.github.com/repos/leralins/itc_frontend/hooks","issue_events_url":"https://api.github.com/repos/leralins/itc_frontend/issues/events{/number}","events_url":"https://api.github.com/repos/leralins/itc_frontend/events","assignees_url":"https://api.github.com/repos/leralins/itc_frontend/assignees{/user}","branches_url":"https://api.github.com/repos/leralins/itc_frontend/branches{/branch}","tags_url":"https://api.github.com/repos/leralins/itc_frontend/tags","blobs_url":"https://api.github.com/repos/leralins/itc_frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/leralins/itc_frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/leralins/itc_frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/leralins/itc_frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/leralins/itc_frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/leralins/itc_frontend/languages","stargazers_url":"https://api.github.com/repos/leralins/itc_frontend/stargazers","contributors_url":"https://api.github.com/repos/leralins/itc_frontend/contributors","subscribers_url":"https://api.github.com/repos/leralins/itc_frontend/subscribers","subscription_url":"https://api.github.com/repos/leralins/itc_frontend/subscription","commits_url":"https://api.github.com/repos/leralins/itc_frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/leralins/itc_frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/leralins/itc_frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/leralins/itc_frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/leralins/itc_frontend/contents/{+path}","compare_url":"https://api.github.com/repos/leralins/itc_frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/leralins/itc_frontend/merges","archive_url":"https://api.github.com/repos/leralins/itc_frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/leralins/itc_frontend/downloads","issues_url":"https://api.github.com/repos/leralins/itc_frontend/issues{/number}","pulls_url":"https://api.github.com/repos/leralins/itc_frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/leralins/itc_frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/leralins/itc_frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/leralins/itc_frontend/labels{/name}","releases_url":"https://api.github.com/repos/leralins/itc_frontend/releases{/id}","deployments_url":"https://api.github.com/repos/leralins/itc_frontend/deployments","created_at":"2018-03-15T12:52:35Z","updated_at":"2018-03-15T12:52:38Z","pushed_at":"2018-03-15T14:57:09Z","git_url":"git://github.com/leralins/itc_frontend.git","ssh_url":"git@github.com:leralins/itc_frontend.git","clone_url":"https://github.com/leralins/itc_frontend.git","svn_url":"https://github.com/leralins/itc_frontend","homepage":null,"size":1,"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":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/leralins/itc_frontend/pulls/1"},"html":{"href":"https://github.com/leralins/itc_frontend/pull/1"},"issue":{"href":"https://api.github.com/repos/leralins/itc_frontend/issues/1"},"comments":{"href":"https://api.github.com/repos/leralins/itc_frontend/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/leralins/itc_frontend/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/leralins/itc_frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/leralins/itc_frontend/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/leralins/itc_frontend/statuses/80ae1daa0271629a2a1dfd3beffe8ea469395444"}},"author_association":"OWNER"}}
{"actor":{"display_login":"mlshv"}}