{"action":"created","comment":{"url":"https://api.github.com/repos/MastersAcademy/js-course-2018/pulls/comments/240369366","pull_request_review_id":183385280,"id":240369366,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MDM2OTM2Ng==","diff_hunk":"@@ -0,0 +1,103 @@\n+const infoHorses = [\n+    { name: 'Arnold', breed: 'Arabian' },\n+    { name: 'Schwarzenegger', breed: 'Quarter Horsee' },\n+    { name: 'Willard', breed: 'Thoroughbred' },\n+    { name: 'Smith', breed: 'Tennessee Walker' },\n+    { name: 'Johnny', breed: 'Morgan' },\n+    { name: 'Depp', breed: 'Falabella' },\n+    { name: 'Nicolas', breed: 'Paint' },\n+    { name: 'Cage', breed: 'Appaloosa' },\n+    { name: 'Keanu', breed: 'Warmblood' },\n+    { name: 'Reeves', breed: 'Andalusian' },\n+];\n+\n+class Horse {\n+    constructor(name, breed) {\n+        this.name = name;\n+        this.breed = breed;\n+    }\n+}\n+\n+class Racer extends Horse {\n+    constructor(name, breed) {\n+        super(name, breed);\n+        this.distance = 0;\n+        this.setSpeed();\n+    }\n+\n+    setSpeed() {\n+        const min = 10;\n+        const max = 15;\n+        this.speed = Math.random() * (max - min) + min;\n+    }\n+\n+    run() {\n+        let count = 0;\n+        this.timerId = setInterval(() => {\n+            this.distance = this.distance + this.speed;\n+            this.setSpeed();\n+            count++;\n+            if (count >= 10) {\n+                this.stop();\n+            }\n+        }, 1000);\n+    }\n+\n+    stop() {\n+        if (this.timerId === undefined) {\n+            return;\n+        }\n+        clearInterval(this.timerId);\n+    }\n+}\n+\n+class Race {\n+    constructor() {\n+        this.horses = [];\n+    }\n+\n+    createRace() {\n+        infoHorses.forEach((element) => {\n+            const racer = new Racer(element.name, element.breed);\n+            racer.stop();","path":"homeworks/iurii.stepanenko_IuriiSky/homework_6/task2.js","position":null,"original_position":62,"commit_id":"076211fc183939128cf4c5be4f6ea6a43aefe7d0","original_commit_id":"d953f39131c32c0f68163c38e360a741374f9ba9","user":{"login":"IuriiSky","id":44664504,"node_id":"MDQ6VXNlcjQ0NjY0NTA0","avatar_url":"https://avatars1.githubusercontent.com/u/44664504?v=4","gravatar_id":"","url":"https://api.github.com/users/IuriiSky","html_url":"https://github.com/IuriiSky","followers_url":"https://api.github.com/users/IuriiSky/followers","following_url":"https://api.github.com/users/IuriiSky/following{/other_user}","gists_url":"https://api.github.com/users/IuriiSky/gists{/gist_id}","starred_url":"https://api.github.com/users/IuriiSky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IuriiSky/subscriptions","organizations_url":"https://api.github.com/users/IuriiSky/orgs","repos_url":"https://api.github.com/users/IuriiSky/repos","events_url":"https://api.github.com/users/IuriiSky/events{/privacy}","received_events_url":"https://api.github.com/users/IuriiSky/received_events","type":"User","site_admin":false},"body":"робив тести, забув просто стерти...","created_at":"2018-12-10T20:33:04Z","updated_at":"2018-12-10T20:33:04Z","html_url":"https://github.com/MastersAcademy/js-course-2018/pull/811#discussion_r240369366","pull_request_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/pulls/811","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/MastersAcademy/js-course-2018/pulls/comments/240369366"},"html":{"href":"https://github.com/MastersAcademy/js-course-2018/pull/811#discussion_r240369366"},"pull_request":{"href":"https://api.github.com/repos/MastersAcademy/js-course-2018/pulls/811"}},"in_reply_to_id":240050976},"pull_request":{"url":"https://api.github.com/repos/MastersAcademy/js-course-2018/pulls/811","id":237090304,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM3MDkwMzA0","html_url":"https://github.com/MastersAcademy/js-course-2018/pull/811","diff_url":"https://github.com/MastersAcademy/js-course-2018/pull/811.diff","patch_url":"https://github.com/MastersAcademy/js-course-2018/pull/811.patch","issue_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/issues/811","number":811,"state":"open","locked":false,"title":"Homework_6 (all)","user":{"login":"IuriiSky","id":44664504,"node_id":"MDQ6VXNlcjQ0NjY0NTA0","avatar_url":"https://avatars1.githubusercontent.com/u/44664504?v=4","gravatar_id":"","url":"https://api.github.com/users/IuriiSky","html_url":"https://github.com/IuriiSky","followers_url":"https://api.github.com/users/IuriiSky/followers","following_url":"https://api.github.com/users/IuriiSky/following{/other_user}","gists_url":"https://api.github.com/users/IuriiSky/gists{/gist_id}","starred_url":"https://api.github.com/users/IuriiSky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IuriiSky/subscriptions","organizations_url":"https://api.github.com/users/IuriiSky/orgs","repos_url":"https://api.github.com/users/IuriiSky/repos","events_url":"https://api.github.com/users/IuriiSky/events{/privacy}","received_events_url":"https://api.github.com/users/IuriiSky/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-08T20:43:39Z","updated_at":"2018-12-10T20:33:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ee8a9a177bff2fca0f42ac6ea5b93839766fedcb","assignee":{"login":"TarasTurchenko","id":29049264,"node_id":"MDQ6VXNlcjI5MDQ5MjY0","avatar_url":"https://avatars1.githubusercontent.com/u/29049264?v=4","gravatar_id":"","url":"https://api.github.com/users/TarasTurchenko","html_url":"https://github.com/TarasTurchenko","followers_url":"https://api.github.com/users/TarasTurchenko/followers","following_url":"https://api.github.com/users/TarasTurchenko/following{/other_user}","gists_url":"https://api.github.com/users/TarasTurchenko/gists{/gist_id}","starred_url":"https://api.github.com/users/TarasTurchenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TarasTurchenko/subscriptions","organizations_url":"https://api.github.com/users/TarasTurchenko/orgs","repos_url":"https://api.github.com/users/TarasTurchenko/repos","events_url":"https://api.github.com/users/TarasTurchenko/events{/privacy}","received_events_url":"https://api.github.com/users/TarasTurchenko/received_events","type":"User","site_admin":false},"assignees":[{"login":"TarasTurchenko","id":29049264,"node_id":"MDQ6VXNlcjI5MDQ5MjY0","avatar_url":"https://avatars1.githubusercontent.com/u/29049264?v=4","gravatar_id":"","url":"https://api.github.com/users/TarasTurchenko","html_url":"https://github.com/TarasTurchenko","followers_url":"https://api.github.com/users/TarasTurchenko/followers","following_url":"https://api.github.com/users/TarasTurchenko/following{/other_user}","gists_url":"https://api.github.com/users/TarasTurchenko/gists{/gist_id}","starred_url":"https://api.github.com/users/TarasTurchenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TarasTurchenko/subscriptions","organizations_url":"https://api.github.com/users/TarasTurchenko/orgs","repos_url":"https://api.github.com/users/TarasTurchenko/repos","events_url":"https://api.github.com/users/TarasTurchenko/events{/privacy}","received_events_url":"https://api.github.com/users/TarasTurchenko/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1076837700,"node_id":"MDU6TGFiZWwxMDc2ODM3NzAw","url":"https://api.github.com/repos/MastersAcademy/js-course-2018/labels/not%20on%20time","name":"not on time","color":"cfd3d7","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/pulls/811/commits","review_comments_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/pulls/811/comments","review_comment_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/issues/811/comments","statuses_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/statuses/076211fc183939128cf4c5be4f6ea6a43aefe7d0","head":{"label":"IuriiSky:jshw6","ref":"jshw6","sha":"076211fc183939128cf4c5be4f6ea6a43aefe7d0","user":{"login":"IuriiSky","id":44664504,"node_id":"MDQ6VXNlcjQ0NjY0NTA0","avatar_url":"https://avatars1.githubusercontent.com/u/44664504?v=4","gravatar_id":"","url":"https://api.github.com/users/IuriiSky","html_url":"https://github.com/IuriiSky","followers_url":"https://api.github.com/users/IuriiSky/followers","following_url":"https://api.github.com/users/IuriiSky/following{/other_user}","gists_url":"https://api.github.com/users/IuriiSky/gists{/gist_id}","starred_url":"https://api.github.com/users/IuriiSky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IuriiSky/subscriptions","organizations_url":"https://api.github.com/users/IuriiSky/orgs","repos_url":"https://api.github.com/users/IuriiSky/repos","events_url":"https://api.github.com/users/IuriiSky/events{/privacy}","received_events_url":"https://api.github.com/users/IuriiSky/received_events","type":"User","site_admin":false},"repo":{"id":155681161,"node_id":"MDEwOlJlcG9zaXRvcnkxNTU2ODExNjE=","name":"js-course-2018","full_name":"IuriiSky/js-course-2018","private":false,"owner":{"login":"IuriiSky","id":44664504,"node_id":"MDQ6VXNlcjQ0NjY0NTA0","avatar_url":"https://avatars1.githubusercontent.com/u/44664504?v=4","gravatar_id":"","url":"https://api.github.com/users/IuriiSky","html_url":"https://github.com/IuriiSky","followers_url":"https://api.github.com/users/IuriiSky/followers","following_url":"https://api.github.com/users/IuriiSky/following{/other_user}","gists_url":"https://api.github.com/users/IuriiSky/gists{/gist_id}","starred_url":"https://api.github.com/users/IuriiSky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IuriiSky/subscriptions","organizations_url":"https://api.github.com/users/IuriiSky/orgs","repos_url":"https://api.github.com/users/IuriiSky/repos","events_url":"https://api.github.com/users/IuriiSky/events{/privacy}","received_events_url":"https://api.github.com/users/IuriiSky/received_events","type":"User","site_admin":false},"html_url":"https://github.com/IuriiSky/js-course-2018","description":"Репозиторій з курсів «Front-end» та «NodeJS» проекту Masters Academy","fork":true,"url":"https://api.github.com/repos/IuriiSky/js-course-2018","forks_url":"https://api.github.com/repos/IuriiSky/js-course-2018/forks","keys_url":"https://api.github.com/repos/IuriiSky/js-course-2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IuriiSky/js-course-2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IuriiSky/js-course-2018/teams","hooks_url":"https://api.github.com/repos/IuriiSky/js-course-2018/hooks","issue_events_url":"https://api.github.com/repos/IuriiSky/js-course-2018/issues/events{/number}","events_url":"https://api.github.com/repos/IuriiSky/js-course-2018/events","assignees_url":"https://api.github.com/repos/IuriiSky/js-course-2018/assignees{/user}","branches_url":"https://api.github.com/repos/IuriiSky/js-course-2018/branches{/branch}","tags_url":"https://api.github.com/repos/IuriiSky/js-course-2018/tags","blobs_url":"https://api.github.com/repos/IuriiSky/js-course-2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IuriiSky/js-course-2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IuriiSky/js-course-2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/IuriiSky/js-course-2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IuriiSky/js-course-2018/statuses/{sha}","languages_url":"https://api.github.com/repos/IuriiSky/js-course-2018/languages","stargazers_url":"https://api.github.com/repos/IuriiSky/js-course-2018/stargazers","contributors_url":"https://api.github.com/repos/IuriiSky/js-course-2018/contributors","subscribers_url":"https://api.github.com/repos/IuriiSky/js-course-2018/subscribers","subscription_url":"https://api.github.com/repos/IuriiSky/js-course-2018/subscription","commits_url":"https://api.github.com/repos/IuriiSky/js-course-2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/IuriiSky/js-course-2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/IuriiSky/js-course-2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/IuriiSky/js-course-2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/IuriiSky/js-course-2018/contents/{+path}","compare_url":"https://api.github.com/repos/IuriiSky/js-course-2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IuriiSky/js-course-2018/merges","archive_url":"https://api.github.com/repos/IuriiSky/js-course-2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IuriiSky/js-course-2018/downloads","issues_url":"https://api.github.com/repos/IuriiSky/js-course-2018/issues{/number}","pulls_url":"https://api.github.com/repos/IuriiSky/js-course-2018/pulls{/number}","milestones_url":"https://api.github.com/repos/IuriiSky/js-course-2018/milestones{/number}","notifications_url":"https://api.github.com/repos/IuriiSky/js-course-2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IuriiSky/js-course-2018/labels{/name}","releases_url":"https://api.github.com/repos/IuriiSky/js-course-2018/releases{/id}","deployments_url":"https://api.github.com/repos/IuriiSky/js-course-2018/deployments","created_at":"2018-11-01T07:56:32Z","updated_at":"2018-12-07T11:56:12Z","pushed_at":"2018-12-10T20:31:26Z","git_url":"git://github.com/IuriiSky/js-course-2018.git","ssh_url":"git@github.com:IuriiSky/js-course-2018.git","clone_url":"https://github.com/IuriiSky/js-course-2018.git","svn_url":"https://github.com/IuriiSky/js-course-2018","homepage":"https://www.facebook.com/cherkasy.masters/","size":74102,"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":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"MastersAcademy:master","ref":"master","sha":"50efe27bdaba1ba759732e59f7cf3054788f3d39","user":{"login":"MastersAcademy","id":22305415,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMzA1NDE1","avatar_url":"https://avatars3.githubusercontent.com/u/22305415?v=4","gravatar_id":"","url":"https://api.github.com/users/MastersAcademy","html_url":"https://github.com/MastersAcademy","followers_url":"https://api.github.com/users/MastersAcademy/followers","following_url":"https://api.github.com/users/MastersAcademy/following{/other_user}","gists_url":"https://api.github.com/users/MastersAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/MastersAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MastersAcademy/subscriptions","organizations_url":"https://api.github.com/users/MastersAcademy/orgs","repos_url":"https://api.github.com/users/MastersAcademy/repos","events_url":"https://api.github.com/users/MastersAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/MastersAcademy/received_events","type":"Organization","site_admin":false},"repo":{"id":151268223,"node_id":"MDEwOlJlcG9zaXRvcnkxNTEyNjgyMjM=","name":"js-course-2018","full_name":"MastersAcademy/js-course-2018","private":false,"owner":{"login":"MastersAcademy","id":22305415,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyMzA1NDE1","avatar_url":"https://avatars3.githubusercontent.com/u/22305415?v=4","gravatar_id":"","url":"https://api.github.com/users/MastersAcademy","html_url":"https://github.com/MastersAcademy","followers_url":"https://api.github.com/users/MastersAcademy/followers","following_url":"https://api.github.com/users/MastersAcademy/following{/other_user}","gists_url":"https://api.github.com/users/MastersAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/MastersAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MastersAcademy/subscriptions","organizations_url":"https://api.github.com/users/MastersAcademy/orgs","repos_url":"https://api.github.com/users/MastersAcademy/repos","events_url":"https://api.github.com/users/MastersAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/MastersAcademy/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/MastersAcademy/js-course-2018","description":"Репозиторій з курсів «Front-end» та «NodeJS» проекту Masters Academy","fork":false,"url":"https://api.github.com/repos/MastersAcademy/js-course-2018","forks_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/forks","keys_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/teams","hooks_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/hooks","issue_events_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/issues/events{/number}","events_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/events","assignees_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/assignees{/user}","branches_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/branches{/branch}","tags_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/tags","blobs_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/git/refs{/sha}","trees_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/statuses/{sha}","languages_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/languages","stargazers_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/stargazers","contributors_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/contributors","subscribers_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/subscribers","subscription_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/subscription","commits_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/commits{/sha}","git_commits_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/git/commits{/sha}","comments_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/comments{/number}","issue_comment_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/issues/comments{/number}","contents_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/contents/{+path}","compare_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/merges","archive_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/downloads","issues_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/issues{/number}","pulls_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/pulls{/number}","milestones_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/milestones{/number}","notifications_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/labels{/name}","releases_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/releases{/id}","deployments_url":"https://api.github.com/repos/MastersAcademy/js-course-2018/deployments","created_at":"2018-10-02T14:27:19Z","updated_at":"2018-12-10T15:57:31Z","pushed_at":"2018-12-10T20:31:28Z","git_url":"git://github.com/MastersAcademy/js-course-2018.git","ssh_url":"git@github.com:MastersAcademy/js-course-2018.git","clone_url":"https://github.com/MastersAcademy/js-course-2018.git","svn_url":"https://github.com/MastersAcademy/js-course-2018","homepage":"https://www.facebook.com/cherkasy.masters/","size":73844,"stargazers_count":10,"watchers_count":10,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":114,"mirror_url":null,"archived":false,"open_issues_count":58,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":114,"open_issues":58,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MastersAcademy/js-course-2018/pulls/811"},"html":{"href":"https://github.com/MastersAcademy/js-course-2018/pull/811"},"issue":{"href":"https://api.github.com/repos/MastersAcademy/js-course-2018/issues/811"},"comments":{"href":"https://api.github.com/repos/MastersAcademy/js-course-2018/issues/811/comments"},"review_comments":{"href":"https://api.github.com/repos/MastersAcademy/js-course-2018/pulls/811/comments"},"review_comment":{"href":"https://api.github.com/repos/MastersAcademy/js-course-2018/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MastersAcademy/js-course-2018/pulls/811/commits"},"statuses":{"href":"https://api.github.com/repos/MastersAcademy/js-course-2018/statuses/076211fc183939128cf4c5be4f6ea6a43aefe7d0"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"IuriiSky"}}